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

@@ -79,6 +79,7 @@ in
nixpkgs.hostPlatform = "x86_64-linux";
mj = {
profiles.desktop.enableUserServices = true;
stateVersion = "23.11";
timeZone = "UTC";
username = "motiejus";

View File

@@ -89,6 +89,8 @@ in
};
mj = {
profiles.desktop.enableUserServices = true;
stateVersion = "24.05";
timeZone = "Europe/Vilnius";
username = "motiejus";

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;