This commit is contained in:
RingOfStorms (Joshua Bell) 2025-03-17 11:23:22 -05:00
commit c10446db21
4 changed files with 72 additions and 1156 deletions

View file

@ -19,25 +19,13 @@
lib,
...
}:
let
ccfg = import ./config.nix;
cfg_path = "${ccfg.custom_config_key}";
cfg = config.${cfg_path};
in
{
imports = [
./options.nix
./boot
./users
./general
];
options.${cfg_path} = {
systemName = lib.mkOption {
type = lib.types.str;
description = "The name of the system.";
};
};
config = {
};
};
};
};

18
common/options.nix Normal file
View file

@ -0,0 +1,18 @@
{
config,
lib,
...
}:
let
ccfg = import ./config.nix;
cfg_path = "${ccfg.custom_config_key}";
cfg = config.${cfg_path};
in
{
options.${cfg_path} = {
systemName = lib.mkOption {
type = lib.types.str;
description = "The name of the system.";
};
};
}