Add an empty kodi role.
This commit is contained in:
parent
ccbc999744
commit
9d49eb9d6a
@ -56,6 +56,7 @@
|
||||
./roles/vnc_client
|
||||
./roles/chromecast
|
||||
./roles/memtest86
|
||||
./roles/kodi
|
||||
];
|
||||
|
||||
nix.settings.experimental-features = [
|
||||
|
@ -8,6 +8,23 @@
|
||||
{
|
||||
imports = [ ];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
];
|
||||
options.me = {
|
||||
blank.enabled = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
example = true;
|
||||
description = "Whether we want to install blank.";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf config.me.blank.enabled (
|
||||
lib.mkMerge [
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
];
|
||||
}
|
||||
(lib.mkIf config.me.graphical {
|
||||
})
|
||||
]
|
||||
);
|
||||
}
|
||||
|
30
nix/configuration/roles/kodi/default.nix
Normal file
30
nix/configuration/roles/kodi/default.nix
Normal file
@ -0,0 +1,30 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports = [ ];
|
||||
|
||||
options.me = {
|
||||
kodi.enabled = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
example = true;
|
||||
description = "Whether we want to install kodi.";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf config.me.kodi.enabled (
|
||||
lib.mkMerge [
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
];
|
||||
}
|
||||
(lib.mkIf config.me.graphical {
|
||||
})
|
||||
]
|
||||
);
|
||||
}
|
@ -266,6 +266,15 @@ in
|
||||
./notification.nix
|
||||
];
|
||||
|
||||
options.me = {
|
||||
sway.enabled = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
example = true;
|
||||
description = "Whether we want to install sway.";
|
||||
};
|
||||
};
|
||||
|
||||
options.me.swayIncludes = lib.mkOption {
|
||||
type = lib.types.listOf lib.types.package;
|
||||
default = [ ];
|
||||
|
Loading…
x
Reference in New Issue
Block a user