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 = outputs =
{ self, nixpkgs, ... }@inputs: { nixpkgs, ... }@inputs:
{ {
nixosConfigurations.default = nixpkgs.lib.nixosSystem { nixosConfigurations = {
specialArgs = { desktop = nixpkgs.lib.nixosSystem {
inherit inputs; specialArgs = {
}; inherit inputs;
};
modules = [ modules = [
./configuration.nix ./hosts/desktop/configuration.nix
inputs.home-manager.nixosModules.default ];
]; };
}; };
}; };
} }

View file

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

View file

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