refactor to use separate hosts

This commit is contained in:
Kim, Jimin 2024-10-06 11:20:15 +09:00
parent dcb8a8304c
commit 593307a439
Signed by: pomp
GPG key ID: D3932F82A0667A3B
5 changed files with 14 additions and 13 deletions

View file

@ -13,17 +13,18 @@
};
outputs =
{ self, nixpkgs, ... }@inputs:
{ nixpkgs, ... }@inputs:
{
nixosConfigurations.default = nixpkgs.lib.nixosSystem {
specialArgs = {
inherit inputs;
};
nixosConfigurations = {
desktop = nixpkgs.lib.nixosSystem {
specialArgs = {
inherit inputs;
};
modules = [
./configuration.nix
inputs.home-manager.nixosModules.default
];
modules = [
./hosts/desktop/configuration.nix
];
};
};
};
}

View file

@ -48,8 +48,8 @@
# org.gradle.daemon.idletimeout=3600000
# '';
".profile".source = home/.profile;
".zshrc".source = home/.zshrc;
".profile".source = ../../home/.profile;
".zshrc".source = ../../home/.zshrc;
};
# Home Manager can also manage your environment variables through

View file

@ -1,5 +1,5 @@
r:
sudo nixos-rebuild switch --flake ./#default --print-build-logs
r HOST:
sudo nixos-rebuild switch --flake ./#{{HOST}} --print-build-logs
u:
sudo nix flake update