This commit is contained in:
Johannes Kirschbauer
2024-08-23 18:04:20 +02:00
parent 0dd992705c
commit 086e6c29d3
3 changed files with 20 additions and 12 deletions

View File

@@ -81,14 +81,20 @@ let
"${directory}/machines/${name}/configuration.nix"
hwConfig
];
config.warnings = lib.optionals (builtins.all builtins.pathExists [hwConfig facterJson]) [
''
Duplicate hardware facts: '${hwConfig}' and '${facterJson}' exist.
Using both is not recommended.
config.warnings =
lib.optionals
(builtins.all builtins.pathExists [
hwConfig
facterJson
])
[
''
Duplicate hardware facts: '${hwConfig}' and '${facterJson}' exist.
Using both is not recommended.
It is recommended to use the hardware facts from '${facterJson}', please remove '${hwConfig}'.
''
];
It is recommended to use the hardware facts from '${facterJson}', please remove '${hwConfig}'.
''
];
}
settings
clan-core.nixosModules.clanCore