2023-12-29 10:48:52 +00:00
|
|
|
{ config, lib, ... }:
|
|
|
|
|
|
|
|
let
|
2025-01-12 09:52:59 +00:00
|
|
|
inherit (config.xdg) userDirs;
|
2023-12-29 10:48:52 +00:00
|
|
|
userCfg = config.users.foo-dogsquared;
|
|
|
|
cfg = userCfg.programs.dconf;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.users.foo-dogsquared.programs.dconf.enable =
|
|
|
|
lib.mkEnableOption "dconf configuration";
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
dconf.settings = {
|
2024-01-14 23:45:43 +00:00
|
|
|
# My GNOME Shell and programs configuration.
|
2023-12-29 10:48:52 +00:00
|
|
|
"org/gnome/shell" = {
|
|
|
|
favorite-apps =
|
|
|
|
lib.optional userCfg.programs.browsers.firefox.enable "firefox.desktop"
|
|
|
|
++ lib.optional userCfg.setups.desktop.enable "thunderbird.desktop"
|
|
|
|
++ lib.optional userCfg.setups.development.enable "org.wezfurlong.wezterm.desktop"
|
2024-11-24 12:47:34 +00:00
|
|
|
++ lib.optional userCfg.programs.doom-emacs.enable "emacs.desktop"
|
|
|
|
++ lib.optional userCfg.programs.vs-code.enable "code.desktop";
|
2023-12-29 10:48:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
"org/gnome/calculator" = {
|
|
|
|
button-mode = "basic";
|
|
|
|
show-thousands = true;
|
|
|
|
base = 10;
|
|
|
|
word-size = 64;
|
|
|
|
};
|
2025-01-12 09:52:59 +00:00
|
|
|
|
|
|
|
"org/freedesktop/tracker/miner/files" = {
|
|
|
|
index-recursive-directories = [
|
|
|
|
# We could also use the values from home-manager but just to make GNOME Settings happy.
|
|
|
|
"&DESKTOP"
|
|
|
|
"&DOCUMENTS"
|
|
|
|
"&MUSIC"
|
|
|
|
"&PICTURES"
|
|
|
|
"&VIDEOS"
|
|
|
|
"&PUBLIC_SHARE"
|
|
|
|
|
|
|
|
userDirs.extraConfig.XDG_PROJECTS_DIR
|
|
|
|
];
|
|
|
|
};
|
2023-12-29 10:48:52 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|