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
|
pop-icon-theme
|
||||||
];
|
];
|
||||||
|
|
||||||
media.enableAll = true;
|
modules.media.enableAll = true;
|
||||||
|
|
||||||
system.stateVersion = "24.05";
|
system.stateVersion = "24.05";
|
||||||
}
|
}
|
||||||
|
|
|
@ -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";
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue