mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-06-09 10:29:05 +02:00
Refactored machines
This commit is contained in:
parent
1c6b3c4a33
commit
f7b980f413
6 changed files with 15 additions and 38 deletions
|
@ -16,10 +16,6 @@
|
|||
flake = false;
|
||||
};
|
||||
|
||||
hardware = {
|
||||
url = "github:NixOS/nixos-hardware";
|
||||
};
|
||||
|
||||
unstable = {
|
||||
url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
};
|
||||
|
@ -40,7 +36,7 @@
|
|||
})
|
||||
(builtins.attrNames (builtins.readDir ./modules)));
|
||||
|
||||
nixosConfigurations = builtins.mapAttrs (name: value: (mkMachine name value self.nixosModules)) (importConfig ./machines);
|
||||
nixosConfigurations = builtins.mapAttrs (name: value: (mkMachine name value self.nixosModules)) (importConfig ./machines);
|
||||
hydraJobs = (nixpkgs.lib.mapAttrs' (name: config:
|
||||
nixpkgs.lib.nameValuePair "nixos-${name}"
|
||||
config.config.system.build.toplevel) self.nixosConfigurations);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue