refactor to use separate hosts
This commit is contained in:
parent
dcb8a8304c
commit
593307a439
5 changed files with 14 additions and 13 deletions
19
flake.nix
19
flake.nix
|
@ -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
|
];
|
||||||
];
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
4
justfile
4
justfile
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue