feat(dconf): add enable option
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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 ];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user