chore: move media into custom modules module

This commit is contained in:
Nydragon 2024-09-26 15:07:57 +02:00
parent c639d58b0f
commit fde8282dd6
Signed by: nydragon
SSH key fingerprint: SHA256:iQnIC12spf4QjWSbarmkD2No1cLMlu6TWoV7K6cYF5g
3 changed files with 4 additions and 4 deletions

View file

@ -86,7 +86,7 @@
pop-icon-theme pop-icon-theme
]; ];
media.enableAll = true; modules.media.enableAll = true;
system.stateVersion = "24.05"; system.stateVersion = "24.05";
} }

View file

@ -131,7 +131,7 @@
xdg.portal.enable = true; xdg.portal.enable = true;
media.enableAll = true; modules.media.enableAll = true;
# Configure console keymap # Configure console keymap
console.keyMap = "fr"; console.keyMap = "fr";

View file

@ -5,14 +5,14 @@
... ...
}: }:
let let
cfg = config.media; cfg = config.modules.media;
mkMedia = defPackages: { mkMedia = defPackages: {
enable = lib.mkOption { default = cfg.enableAll; }; enable = lib.mkOption { default = cfg.enableAll; };
packages = lib.mkOption { default = defPackages; }; packages = lib.mkOption { default = defPackages; };
}; };
in in
{ {
options.media = { options.modules.media = {
enableAll = lib.mkEnableOption ""; enableAll = lib.mkEnableOption "";
audio = mkMedia [ audio = mkMedia [
pkgs.feishin pkgs.feishin