enableUserServices
This commit is contained in:
@@ -79,6 +79,7 @@ in
|
||||
nixpkgs.hostPlatform = "x86_64-linux";
|
||||
|
||||
mj = {
|
||||
profiles.desktop.enableUserServices = true;
|
||||
stateVersion = "23.11";
|
||||
timeZone = "UTC";
|
||||
username = "motiejus";
|
||||
|
||||
@@ -89,6 +89,8 @@ in
|
||||
};
|
||||
|
||||
mj = {
|
||||
profiles.desktop.enableUserServices = true;
|
||||
|
||||
stateVersion = "24.05";
|
||||
timeZone = "Europe/Vilnius";
|
||||
username = "motiejus";
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user