feat(dconf): add enable option

This commit is contained in:
2026-05-22 09:52:24 +02:00
parent 36948fa1e9
commit 0826ac78e1
2 changed files with 128 additions and 115 deletions

View File

@@ -64,6 +64,7 @@
}; };
browser.primary = "firefox"; browser.primary = "firefox";
my.dconf.enable = true;
browser.secondary = "chromium"; browser.secondary = "chromium";
cloud.azure.enable = true; cloud.azure.enable = true;
comms.signal.enable = true; comms.signal.enable = true;

View File

@@ -1,11 +1,22 @@
{ config, pkgs, ... }: {
config,
lib,
pkgs,
...
}:
let let
cfg = config.my.dconf;
terminal = "kitty"; terminal = "kitty";
browser = config.browser.primary; browser = config.browser.primary;
font = "${config.stylix.fonts.monospace.name} ${toString config.stylix.fonts.sizes.applications}"; font = "${config.stylix.fonts.monospace.name} ${toString config.stylix.fonts.sizes.applications}";
in in
{ {
options.my.dconf = {
enable = lib.mkEnableOption "dconf";
};
config = lib.mkIf cfg.enable {
dconf.settings = { dconf.settings = {
"org/gnome/desktop/background" = { "org/gnome/desktop/background" = {
color-shading-type = "solid"; color-shading-type = "solid";
@@ -122,4 +133,5 @@ in
}; };
home.packages = with pkgs; [ dconf2nix ]; home.packages = with pkgs; [ dconf2nix ];
};
} }