server host config for dns and share

This commit is contained in:
Satria 2026-02-25 21:34:51 +07:00
commit bef8d4784c
7 changed files with 153 additions and 2 deletions

View file

@ -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";
};
};
}