mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 16:57:55 +00:00
Gabriel Arazas
0760acb676
Now we're going beyond these structuring as we might have to accomodate non-system configurations like Nixvim.
31 lines
868 B
Nix
31 lines
868 B
Nix
{ config, lib, ... }:
|
|
|
|
let
|
|
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 = {
|
|
# My GNOME Shell and programs configuration.
|
|
"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"
|
|
++ lib.optional userCfg.programs.doom-emacs.enable "emacs.desktop";
|
|
};
|
|
|
|
"org/gnome/calculator" = {
|
|
button-mode = "basic";
|
|
show-thousands = true;
|
|
base = 10;
|
|
word-size = 64;
|
|
};
|
|
};
|
|
};
|
|
}
|