mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
dconf: Fix dconf config not apply correctly (#7131)
This commit is contained in:
parent
83665c39fa
commit
529d2aac54
2 changed files with 7 additions and 6 deletions
|
|
@ -76,13 +76,13 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable (
|
||||
{
|
||||
config = lib.mkMerge [
|
||||
(lib.mkIf cfg.enable {
|
||||
home.packages = [ pkgs.dconf ];
|
||||
dbus.packages = [ pkgs.dconf ];
|
||||
home.sessionVariables.GIO_EXTRA_MODULES = "${pkgs.dconf.lib}/lib/gio/modules";
|
||||
}
|
||||
// lib.mkIf (cfg.settings != { }) {
|
||||
})
|
||||
(lib.mkIf (cfg.enable && cfg.settings != { }) {
|
||||
# Make sure the dconf directory exists.
|
||||
xdg.configFile."dconf/.keep".source = builtins.toFile "keep" "";
|
||||
|
||||
|
|
@ -147,6 +147,6 @@ in
|
|||
unset DCONF_DBUS_RUN_SESSION
|
||||
''
|
||||
);
|
||||
}
|
||||
);
|
||||
})
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue