toplevel: cleanup

This commit is contained in:
Elec3137 2026-03-23 21:04:37 -07:00
commit 986a9c5551
2 changed files with 4 additions and 26 deletions

View file

@ -1,32 +1,10 @@
{
lib,
pkgs,
config,
...
}:
let
cfg = config.nixowos;
in
{
imports = [
./cli
./graphical
./system
./defaults
./nvidia.nix
];
options.nixowos = {
enable = lib.mkEnableOption "system and cli settings";
};
config = {
_module.args.owoLib = pkgs.callPackage ./lib { };
nixowos = lib.mkIf cfg.enable (
lib.mkDefault {
cli.enable = true;
system.enable = true;
}
);
};
}

View file

@ -6,10 +6,10 @@
let
name = "nvidia";
cfg = config.nixowos.graphical.${name};
cfg = config.nixowos.${name};
in
{
options.nixowos.graphical.${name} = {
options.nixowos.${name} = {
enable = lib.mkEnableOption name;
};