toplevel: cleanup
This commit is contained in:
parent
a128529f97
commit
986a9c5551
2 changed files with 4 additions and 26 deletions
26
default.nix
26
default.nix
|
|
@ -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;
|
||||
}
|
||||
);
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue