convoluted solution looking for a problem

unified modules structure
This commit is contained in:
Vinzenz Schroeter 2023-09-24 10:15:53 +02:00
parent bf3946e06f
commit 1b7989336e
14 changed files with 61 additions and 44 deletions

View file

@ -1,13 +1,20 @@
hostName: {
modulesCfg: {
modulesPath,
lib,
...
}: {
}: let
hostName = modulesCfg.hostName;
in {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
(builtins.toString ./. + "/${hostName}.nix")
./common-desktop.nix
];
options.my.modulesCfg.hostName = lib.mkOption {
type = lib.types.str;
};
config = {
networking.hostName = hostName;