dconf: create generic module and use it

no more cringe function calling, yay
This commit is contained in:
Wroclaw 2024-05-29 04:46:18 +02:00
parent 23bfb2d222
commit 8f15bf0e0c
4 changed files with 244 additions and 195 deletions

View file

@ -1,6 +1,9 @@
{pkgs, ... } @ moduleArgs:
{pkgs, ... }:
{
imports = [
../dconf-common.nix
];
config = {
services.xserver.displayManager.gdm = {
enable = true;
@ -8,18 +11,16 @@
autoSuspend = false;
};
programs.dconf.profiles.gdm.databases = [{
settings = import ../dconf-common.nix moduleArgs [
"org/gnome/desktop/interface"
"org/gnome/desktop/peripherals/mouse"
"org/gnome/desktop/sound"
"org/gnome/settings-daemon/plugins/power"
"org/gnome/shell/keybindings"
];
}];
proot.dconf.profiles.gdm.rulesToApply = [
"org/gnome/desktop/interface"
"org/gnome/desktop/peripherals/mouse"
"org/gnome/desktop/sound"
"org/gnome/settings-daemon/plugins/power"
"org/gnome/shell/keybindings"
];
environment.systemPackages = with pkgs; [
google-cursor
];
};
}
}