mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-01-07 22:16:33 +01:00
25 lines
522 B
Nix
25 lines
522 B
Nix
{ options, config, pkgs, lib, ... }:
|
|
|
|
with lib;
|
|
#with lib.internal;
|
|
let cfg = config.custom.system.xdg;
|
|
in
|
|
{
|
|
options.custom.system.xdg = with types; {
|
|
enable = mkBoolOpt false "Whether or not to enable xdg.";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
xdg = {
|
|
sounds.enable = true;
|
|
mime.enable = true;
|
|
menus.enable = true;
|
|
icons.enable = true;
|
|
autostart.enable = true;
|
|
portal = {
|
|
enable = true;
|
|
extraPortals = with pkgs; [ xdg-desktop-portal ];
|
|
};
|
|
};
|
|
};
|
|
}
|