diff options
| author | Baitinq <[email protected]> | 2022-06-22 16:08:51 +0200 |
|---|---|---|
| committer | Baitinq <[email protected]> | 2022-06-22 16:08:51 +0200 |
| commit | 2fbe1936899ac4b910da340462ad9374f45d096e (patch) | |
| tree | b4a82f6c6b6a26841463ea706411cdeb17c7426d | |
| parent | Custom packages: Python packages: remove use of pkgs.python alias (diff) | |
| download | nixos-config-2fbe1936899ac4b910da340462ad9374f45d096e.tar.gz nixos-config-2fbe1936899ac4b910da340462ad9374f45d096e.tar.bz2 nixos-config-2fbe1936899ac4b910da340462ad9374f45d096e.zip | |
Move hosts variable up
| -rw-r--r-- | hosts/default.nix | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/hosts/default.nix b/hosts/default.nix index 0005227..972b4af 100644 --- a/hosts/default.nix +++ b/hosts/default.nix @@ -1,5 +1,10 @@ { user, lib, nixpkgs, nur, inputs, home-manager, ... }: let + hosts = [ + { hostname = "baitinq"; system = "x86_64-linux"; } + { hostname = "vm"; system = "x86_64-linux"; } + ]; + mkHost = hostname: system: let pkgs = import nixpkgs { @@ -32,11 +37,6 @@ let ]; }; in -let hosts = [ - { hostname = "baitinq"; system = "x86_64-linux"; } - { hostname = "vm"; system = "x86_64-linux"; } -]; -in /* We have a list of sets. Map each element of the list applying the mkHost function to its elements and returning a set in the listToAttrs format |