wip refactor

This commit is contained in:
RingOfStorms (Joshua Bell) 2025-03-17 01:19:40 -05:00
parent 7e7f04574b
commit 26cc522363
4 changed files with 72 additions and 1152 deletions

View file

@ -26,19 +26,11 @@
in
{
imports = [
./options.nix
./boot
./users
./general
];
options.${cfg_path} = {
systemName = lib.mkOption {
type = lib.types.str;
description = "The name of the system.";
};
};
config = {
# // TODO ADD Nix helper stuff rest of it.
};
};
};
};

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.";
};
};
}