WIP refactor

This commit is contained in:
RingOfStorms (Joshua Bell) 2025-03-14 18:56:54 -05:00
parent a5c14dc701
commit 4b1bf541cf
6 changed files with 95 additions and 14 deletions

View file

@ -20,13 +20,30 @@
nixosModules = {
default =
{
config,
lib,
...
}:
let
ccfg = import ./config.nix;
cfg_path = "${ccfg.custom_config_key}";
cfg = config.${cfg_path};
in
{
imports = [
# ./boot/grub.nix
./boot/grub.nix
./boot/systemd.nix
./users/users.nix
];
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.
};
};
};
};