chore: move media into custom modules module
This commit is contained in:
parent
c639d58b0f
commit
fde8282dd6
3 changed files with 4 additions and 4 deletions
|
@ -86,7 +86,7 @@
|
|||
pop-icon-theme
|
||||
];
|
||||
|
||||
media.enableAll = true;
|
||||
modules.media.enableAll = true;
|
||||
|
||||
system.stateVersion = "24.05";
|
||||
}
|
||||
|
|
|
@ -131,7 +131,7 @@
|
|||
|
||||
xdg.portal.enable = true;
|
||||
|
||||
media.enableAll = true;
|
||||
modules.media.enableAll = true;
|
||||
# Configure console keymap
|
||||
console.keyMap = "fr";
|
||||
|
||||
|
|
|
@ -5,14 +5,14 @@
|
|||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.media;
|
||||
cfg = config.modules.media;
|
||||
mkMedia = defPackages: {
|
||||
enable = lib.mkOption { default = cfg.enableAll; };
|
||||
packages = lib.mkOption { default = defPackages; };
|
||||
};
|
||||
in
|
||||
{
|
||||
options.media = {
|
||||
options.modules.media = {
|
||||
enableAll = lib.mkEnableOption "";
|
||||
audio = mkMedia [
|
||||
pkgs.feishin
|
||||
|
|
Loading…
Add table
Reference in a new issue