43 lines
655 B
Nix
43 lines
655 B
Nix
{
|
|
lib,
|
|
config,
|
|
...
|
|
}:
|
|
|
|
let
|
|
name = "defaults";
|
|
cfg = config.nixowos.${name};
|
|
in
|
|
{
|
|
imports = [
|
|
./plasma.nix
|
|
./browsers.nix
|
|
|
|
./tmux.nix
|
|
./git.nix
|
|
./shell.nix
|
|
|
|
./nix.nix
|
|
./lix.nix
|
|
./system.nix
|
|
];
|
|
|
|
options.nixowos.${name} = {
|
|
enable = lib.mkEnableOption name;
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
nixowos.${name} = lib.mkDefault {
|
|
plasma.enable = config.services.desktopManager.plasma6.enable;
|
|
browsers.enable = true;
|
|
|
|
tmux.enable = true;
|
|
git.enable = true;
|
|
shell.enable = true;
|
|
|
|
nix.enable = true;
|
|
lix.enable = true;
|
|
system.enable = true;
|
|
};
|
|
};
|
|
}
|