diff options
| author | seth <[email protected]> | 2023-04-20 22:10:21 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-04-20 22:13:45 -0400 |
| commit | eb3f9e87435be5941278d819351bac0ece172051 (patch) | |
| tree | d32d347bcba4760dcf1b3b8d11e6accbde12f49c /lib/host.nix | |
| parent | 65e26c34990fa57e305093572ea3a9596bc45b38 (diff) | |
move to my external lib
Diffstat (limited to 'lib/host.nix')
| -rw-r--r-- | lib/host.nix | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/lib/host.nix b/lib/host.nix deleted file mode 100644 index 5b092b4..0000000 --- a/lib/host.nix +++ /dev/null @@ -1,44 +0,0 @@ -{lib}: rec { - mkHost = { - name, - modules, - specialArgs ? {}, - system ? "x86_64-linux", - stateVersion ? "22.11", - pkgs, - inputs, - }: - with pkgs.lib; - nixosSystem { - inherit system specialArgs; - modules = - [ - ../modules - ../hosts/${name} - - { - system.stateVersion = stateVersion; - networking.hostName = mkDefault name; - - nixpkgs = { - overlays = with inputs; [nur.overlay getchoo.overlays.default]; - config.allowUnfree = true; - }; - nix.registry.getchoo.flake = inputs.getchoo; - - nixos.enable = true; - } - ] - ++ modules; - }; - - mapHosts = inputs: let - hosts = import ../hosts inputs; - inherit (lib.my) mapFilterDirs; - in - mapFilterDirs ../hosts (n: v: v == "directory" && n != "turret") (name: _: - mkHost ({ - inherit name inputs; - } - // hosts.${name})); -} |
