enableUserServices
This commit is contained in:
@@ -79,6 +79,7 @@ in
|
|||||||
nixpkgs.hostPlatform = "x86_64-linux";
|
nixpkgs.hostPlatform = "x86_64-linux";
|
||||||
|
|
||||||
mj = {
|
mj = {
|
||||||
|
profiles.desktop.enableUserServices = true;
|
||||||
stateVersion = "23.11";
|
stateVersion = "23.11";
|
||||||
timeZone = "UTC";
|
timeZone = "UTC";
|
||||||
username = "motiejus";
|
username = "motiejus";
|
||||||
|
|||||||
@@ -89,6 +89,8 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
mj = {
|
mj = {
|
||||||
|
profiles.desktop.enableUserServices = true;
|
||||||
|
|
||||||
stateVersion = "24.05";
|
stateVersion = "24.05";
|
||||||
timeZone = "Europe/Vilnius";
|
timeZone = "Europe/Vilnius";
|
||||||
username = "motiejus";
|
username = "motiejus";
|
||||||
|
|||||||
@@ -5,7 +5,13 @@
|
|||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
|
cfg = config.mj.profiles.desktop;
|
||||||
inherit (config.mj) username;
|
inherit (config.mj) username;
|
||||||
|
inherit (lib)
|
||||||
|
types
|
||||||
|
mkOption
|
||||||
|
;
|
||||||
|
|
||||||
firefox =
|
firefox =
|
||||||
if (pkgs.stdenv.hostPlatform.system == "x86_64-linux") then pkgs.firefox-bin else pkgs.firefox;
|
if (pkgs.stdenv.hostPlatform.system == "x86_64-linux") then pkgs.firefox-bin else pkgs.firefox;
|
||||||
brightness = pkgs.writeShellApplication {
|
brightness = pkgs.writeShellApplication {
|
||||||
@@ -18,6 +24,13 @@ let
|
|||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
options.mj.profiles.desktop = with types; {
|
||||||
|
enableUserServices = mkOption {
|
||||||
|
type = bool;
|
||||||
|
default = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
../physical
|
../physical
|
||||||
];
|
];
|
||||||
@@ -60,7 +73,7 @@ in
|
|||||||
"docker"
|
"docker"
|
||||||
];
|
];
|
||||||
|
|
||||||
services = {
|
services = lib.mkIf cfg.enableUserServices {
|
||||||
blueman.enable = true;
|
blueman.enable = true;
|
||||||
udev.packages = [ pkgs.yubikey-personalization ];
|
udev.packages = [ pkgs.yubikey-personalization ];
|
||||||
gnome.gnome-keyring.enable = true;
|
gnome.gnome-keyring.enable = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user