Add dconf support

This commit is contained in:
2023-01-03 00:52:05 +00:00
parent 12da797ad4
commit dcf917fac7
2 changed files with 22 additions and 0 deletions

View File

@ -15,11 +15,30 @@ in {
desktopManager.gnome.enable = true;
};
programs.dconf.enable = true;
dconf.settings = {
"org/gnome/shell" = {
favorite-apps = [
"firefox.desktop"
"org.gnome.Nautilus.desktop"
"org.gnome.Console.desktop"
];
};
"org/gnome/desktop/background" = {
picture-uri = "file://${pkgs.gnome.gnome-backgrounds}/share/backgrounds/gnome/adwaita-l.webp";
picture-uri-dark = "file://${pkgs.gnome.gnome-backgrounds}/share/backgrounds/gnome/adwaita-d.webp";
};
};
fonts.fonts = with pkgs; [
noto-fonts
ubuntu_font_family
];
user.packages = with pkgs; [
celluloid
];
environment.systemPackages = with pkgs; [
bind
bmon

View File

@ -15,6 +15,8 @@ with lib.my;
services = mkOpt' attrs { } "Services managed directly from home-manager";
};
dconf.settings = mkOpt' attrs { } "dconf settings to enable";
env = mkOption {
type = attrsOf (oneOf [ str path (listOf (either str path)) ]);
apply = mapAttrs (n: v:
@ -58,6 +60,7 @@ with lib.my;
configFile = mkAliasDefinitions options.home.configFile;
dataFile = mkAliasDefinitions options.home.dataFile;
};
dconf.settings = mkAliasDefinitions options.dconf.settings;
};
};