Fix wrong default for imports
This commit is contained in:
@@ -70,7 +70,7 @@ let
|
|||||||
++ [
|
++ [
|
||||||
{
|
{
|
||||||
# Autoinclude configuration.nix and hardware-configuration.nix
|
# Autoinclude configuration.nix and hardware-configuration.nix
|
||||||
imports = builtins.filter (p: builtins.pathExists p) [
|
imports = builtins.filter builtins.pathExists [
|
||||||
"${directory}/machines/${name}/configuration.nix"
|
"${directory}/machines/${name}/configuration.nix"
|
||||||
"${directory}/machines/${name}/hardware-configuration.nix"
|
"${directory}/machines/${name}/hardware-configuration.nix"
|
||||||
];
|
];
|
||||||
@@ -81,7 +81,7 @@ let
|
|||||||
(machines.${name} or { })
|
(machines.${name} or { })
|
||||||
# Inherit the inventory assertions ?
|
# Inherit the inventory assertions ?
|
||||||
# { inherit (mergedInventory) assertions; }
|
# { inherit (mergedInventory) assertions; }
|
||||||
{ imports = serviceConfigs.${name} or { }; }
|
{ imports = (serviceConfigs.${name} or [ ]); }
|
||||||
(
|
(
|
||||||
{
|
{
|
||||||
# Settings
|
# Settings
|
||||||
@@ -104,6 +104,7 @@ let
|
|||||||
// lib.optionalAttrs (pkgs != null) { nixpkgs.pkgs = lib.mkForce pkgs; }
|
// lib.optionalAttrs (pkgs != null) { nixpkgs.pkgs = lib.mkForce pkgs; }
|
||||||
)
|
)
|
||||||
];
|
];
|
||||||
|
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
inherit clan-core;
|
inherit clan-core;
|
||||||
} // specialArgs;
|
} // specialArgs;
|
||||||
|
|||||||
Reference in New Issue
Block a user