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 =
|
||||
{ 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
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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
|
4
justfile
4
justfile
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue