Include the name in the configuration
This commit is contained in:
parent
3693994200
commit
a2810cb314
2 changed files with 37 additions and 39 deletions
|
@ -19,10 +19,10 @@
|
|||
nixosConfigurations = builtins.listToAttrs
|
||||
(
|
||||
builtins.map (
|
||||
{ name, config ? {} }:
|
||||
{ name, ... }@config:
|
||||
{
|
||||
inherit name;
|
||||
value = system name config;
|
||||
value = system config;
|
||||
})
|
||||
systems);
|
||||
};
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
{ nixpkgs }:
|
||||
name :
|
||||
{ dualBoot ? false } :
|
||||
{ name, dualBoot ? false } :
|
||||
let
|
||||
lib = nixpkgs.lib;
|
||||
configPath = ./machines/${name}.nix;
|
||||
|
@ -9,8 +8,7 @@
|
|||
configPath
|
||||
else
|
||||
./hardware/base.nix;
|
||||
in
|
||||
lib.nixosSystem {
|
||||
in lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
(
|
||||
|
|
Loading…
Reference in a new issue