server host config for dns and share
This commit is contained in:
parent
e010bff600
commit
bef8d4784c
7 changed files with 153 additions and 2 deletions
13
flake.nix
13
flake.nix
|
|
@ -24,7 +24,15 @@
|
|||
inherit inputs;
|
||||
} // import ./lib/options.nix;
|
||||
|
||||
nixosConfigForHost = host: inputs.nixpkgs.lib.nixosSystem {
|
||||
nixosConfig = host: inputs.nixpkgs.lib.nixosSystem {
|
||||
inherit pkgs;
|
||||
specialArgs = args;
|
||||
modules = [
|
||||
./hosts/${host}/config.nix
|
||||
];
|
||||
};
|
||||
|
||||
nixosConfigWithHome = host: inputs.nixpkgs.lib.nixosSystem {
|
||||
inherit pkgs;
|
||||
specialArgs = args;
|
||||
modules = [
|
||||
|
|
@ -43,7 +51,8 @@
|
|||
};
|
||||
in {
|
||||
nixosConfigurations = {
|
||||
thinkpad = nixosConfigForHost "thinkpad";
|
||||
thinkpad = nixosConfigWithHome "thinkpad";
|
||||
homelab = nixosConfig "homelab";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue