niksos/hosts/default.nix
2023-07-13 16:44:07 +02:00

32 lines
812 B
Nix

{
lib,
inputs,
...
}: let
self = inputs.self;
home-manager = inputs.home-manager.nixosModules.home-manager;
home-configs = import ../homes;
in {
niks = lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {inherit lib inputs self;};
modules = [
{networking.hostName = "niks";}
./niks
]
++ [
# this list includes an alias for the home-manager module, and another for the global home-manager configuration directory
home-manager
home-configs
];
};
chmura = lib.nixosSystem {
system = "x86_86-linux";
specialArgs = {inherit lib inputs self;};
modules = [
{networking.hostName = "chmura";}
./chmura
];
};
}