feat(nixos/desktop): enable desktop module by default

This commit is contained in:
Mohammad Rafiq 2025-06-14 04:15:28 +08:00
parent a654a6b9b6
commit 63b80b67ce
No known key found for this signature in database
3 changed files with 11 additions and 4 deletions

View file

@ -7,13 +7,14 @@
}:
let
cfg = config.desktop;
inherit (lib) mkIf mkEnableOption;
upstreamCfg = osConfig.desktop;
inherit (lib) mkMerge mkIf mkEnableOption;
in
{
options.desktop = {
wayland.enableUtils = mkEnableOption "common Wayland utilities";
};
config = lib.mkMerge [
config = mkIf upstreamCfg.enable (mkMerge [
(mkIf cfg.wayland.enableUtils {
home.packages = with pkgs; [
wl-clipboard-rs
@ -43,5 +44,5 @@ in
".config/sunshine"
];
})
];
]);
}