enableUserServices

This commit is contained in:
2026-01-27 10:30:14 +00:00
parent c557febbb1
commit 2eddeae6b6
3 changed files with 17 additions and 1 deletions

View File

@@ -5,7 +5,13 @@
...
}:
let
cfg = config.mj.profiles.desktop;
inherit (config.mj) username;
inherit (lib)
types
mkOption
;
firefox =
if (pkgs.stdenv.hostPlatform.system == "x86_64-linux") then pkgs.firefox-bin else pkgs.firefox;
brightness = pkgs.writeShellApplication {
@@ -18,6 +24,13 @@ let
};
in
{
options.mj.profiles.desktop = with types; {
enableUserServices = mkOption {
type = bool;
default = false;
};
};
imports = [
../physical
];
@@ -60,7 +73,7 @@ in
"docker"
];
services = {
services = lib.mkIf cfg.enableUserServices {
blueman.enable = true;
udev.packages = [ pkgs.yubikey-personalization ];
gnome.gnome-keyring.enable = true;