Make config host independant
This commit is contained in:
parent
d0317d9b39
commit
dc30940074
8 changed files with 67 additions and 20 deletions
21
flake.nix
21
flake.nix
|
@ -28,7 +28,7 @@
|
|||
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, home-manager, ... }@inputs:
|
||||
outputs = { self, nixpkgs, home-manager, disko, ... }@inputs:
|
||||
let
|
||||
inherit (self) outputs;
|
||||
forAllSystems = nixpkgs.lib.genAttrs [
|
||||
|
@ -41,6 +41,7 @@
|
|||
{
|
||||
# Please replace my-nixos with your hostname
|
||||
nixosConfigurations = {
|
||||
|
||||
Lenni = lib.nixosSystem {
|
||||
inherit specialArgs;
|
||||
modules = [
|
||||
|
@ -51,10 +52,28 @@
|
|||
#home-manager.users.willifan = import ./users/willifan/home;
|
||||
# Optionally, use home-manager.extraSpecialArgs to pass arguments to home.nix
|
||||
}
|
||||
disko.nixosModules.disko
|
||||
./hosts
|
||||
./users/willifan
|
||||
];
|
||||
};
|
||||
|
||||
Puenktchen = lib.nixosSystem {
|
||||
inherit specialArgs;
|
||||
modules = [
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
#home-manager.users.willifan = import ./users/willifan/home;
|
||||
# Optionally, use home-manager.extraSpecialArgs to pass arguments to home.nix
|
||||
}
|
||||
disko.nixosModules.disko
|
||||
./hosts
|
||||
./users/willifan
|
||||
];
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue