apply numlock to multiple users without copy paste

This commit is contained in:
Vinzenz Schroeter 2023-09-09 15:01:01 +02:00
parent a24b916572
commit 068c4469b2

View file

@ -5,6 +5,19 @@
... ...
}: let }: let
cfg = config.my.gnome; cfg = config.my.gnome;
applyGnomeUserSettings = {
home.packages = with pkgs; [
gnome.gpaste
amberol
];
dconf.settings = {
"org/gnome/desktop/peripherals/keyboard" = {
numlock-state = true;
};
};
};
in { in {
options.my.gnome = { options.my.gnome = {
enable = lib.mkEnableOption "gnome desktop"; enable = lib.mkEnableOption "gnome desktop";
@ -41,18 +54,8 @@ in {
]; ];
home-manager.users = { home-manager.users = {
vinzenz = lib.mkIf config.my.users.vinzenz.enable { vinzenz = lib.mkIf config.my.users.vinzenz.enable applyGnomeUserSettings;
home.packages = with pkgs; [ ronja = lib.mkIf config.my.users.ronja.enable applyGnomeUserSettings;
gnome.gpaste
amberol
];
dconf.settings = {
"org/gnome/desktop/peripherals/keyboard" = {
numlock-state = true;
};
};
};
}; };
}; };
} }