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