feat(dconf): add enable option
This commit is contained in:
@@ -64,6 +64,7 @@
|
||||
};
|
||||
|
||||
browser.primary = "firefox";
|
||||
my.dconf.enable = true;
|
||||
browser.secondary = "chromium";
|
||||
cloud.azure.enable = true;
|
||||
comms.signal.enable = true;
|
||||
|
||||
@@ -1,11 +1,22 @@
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
cfg = config.my.dconf;
|
||||
terminal = "kitty";
|
||||
browser = config.browser.primary;
|
||||
font = "${config.stylix.fonts.monospace.name} ${toString config.stylix.fonts.sizes.applications}";
|
||||
in
|
||||
{
|
||||
options.my.dconf = {
|
||||
enable = lib.mkEnableOption "dconf";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
dconf.settings = {
|
||||
"org/gnome/desktop/background" = {
|
||||
color-shading-type = "solid";
|
||||
@@ -122,4 +133,5 @@ in
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [ dconf2nix ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user