diff options
| author | seth <[email protected]> | 2023-01-25 20:26:41 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2023-01-26 03:49:52 -0500 |
| commit | 7608b3701bf43502a9d3e5752b5f4cd9643f126b (patch) | |
| tree | 31e8e43af2effe1a306db6cc3b65171101968698 /util/host.nix | |
| parent | 7c93704d3d49a7dc3f0067beb80846ca539d392b (diff) | |
help
Diffstat (limited to 'util/host.nix')
| -rw-r--r-- | util/host.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/util/host.nix b/util/host.nix new file mode 100644 index 0000000..18e87a9 --- /dev/null +++ b/util/host.nix @@ -0,0 +1,28 @@ +{lib, ...}: +with lib; { + mkHost = { + name, + modules, + system ? "x86_64-linux", + pkgs, + }: + nixosSystem { + inherit system; + modules = + [ + ../hosts/common + + { + nixpkgs.pkgs = pkgs; + networking.hostName = mkDefault name; + } + + home-manager.nixosModules.home-manager + { + home-manager.useGlobalPkgs = true; + home-manager.useUserPackages = true; + } + ] + ++ modules; + }; +} |
