defaults: cleanup
This commit is contained in:
parent
09ad3d8197
commit
0144d9667b
4 changed files with 18 additions and 19 deletions
|
|
@ -12,10 +12,15 @@ in
|
|||
imports = [
|
||||
./jp.nix
|
||||
./plasma.nix
|
||||
./browsers.nix
|
||||
|
||||
./tmux.nix
|
||||
./git.nix
|
||||
./shell.nix
|
||||
./browsers.nix
|
||||
|
||||
./nix.nix
|
||||
./lix.nix
|
||||
./system.nix
|
||||
];
|
||||
|
||||
options.nixowos.${name} = {
|
||||
|
|
@ -26,10 +31,15 @@ in
|
|||
nixowos.${name} = lib.mkDefault {
|
||||
jp.enable = true;
|
||||
plasma.enable = config.services.desktopManager.plasma6.enable;
|
||||
browers.enable = true;
|
||||
|
||||
tmux.enable = true;
|
||||
git.enable = true;
|
||||
shell.enable = true;
|
||||
browers.enable = true;
|
||||
|
||||
nix.enable = true;
|
||||
lix.enable = true;
|
||||
system.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,10 +7,10 @@
|
|||
|
||||
let
|
||||
name = "lix";
|
||||
cfg = config.nixowos.system.${name};
|
||||
cfg = config.nixowos.defaults.${name};
|
||||
in
|
||||
{
|
||||
options.nixowos.system.${name} = {
|
||||
options.nixowos.defaults.${name} = {
|
||||
enable = lib.mkEnableOption name;
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -7,10 +7,10 @@
|
|||
|
||||
let
|
||||
name = "nix";
|
||||
cfg = config.nixowos.system.${name};
|
||||
cfg = config.nixowos.defaults.${name};
|
||||
in
|
||||
{
|
||||
options.nixowos.system.${name} = {
|
||||
options.nixowos.defaults.${name} = {
|
||||
enable = lib.mkEnableOption name;
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -7,16 +7,10 @@
|
|||
|
||||
let
|
||||
name = "system";
|
||||
cfg = config.nixowos.${name};
|
||||
cfg = config.nixowos.defaults.${name};
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
./lix.nix
|
||||
./nix.nix
|
||||
./luks.nix
|
||||
];
|
||||
|
||||
options.nixowos.${name} = {
|
||||
options.nixowos.defaults.${name} = {
|
||||
enable = lib.mkEnableOption name;
|
||||
|
||||
extraPackages = lib.mkOption {
|
||||
|
|
@ -28,11 +22,6 @@ in
|
|||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
nixowos.${name} = lib.mkDefault {
|
||||
lix.enable = true;
|
||||
nix.enable = true;
|
||||
luks.enable = true;
|
||||
};
|
||||
|
||||
environment.systemPackages = cfg.extraPackages;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue