mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-17 22:41:11 +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 ];
|
home.packages = [ pkgs.dconf ];
|
||||||
dbus.packages = [ pkgs.dconf ];
|
dbus.packages = [ pkgs.dconf ];
|
||||||
home.sessionVariables.GIO_EXTRA_MODULES = "${pkgs.dconf.lib}/lib/gio/modules";
|
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.
|
# Make sure the dconf directory exists.
|
||||||
xdg.configFile."dconf/.keep".source = builtins.toFile "keep" "";
|
xdg.configFile."dconf/.keep".source = builtins.toFile "keep" "";
|
||||||
|
|
||||||
|
|
@ -147,6 +147,6 @@ in
|
||||||
unset DCONF_DBUS_RUN_SESSION
|
unset DCONF_DBUS_RUN_SESSION
|
||||||
''
|
''
|
||||||
);
|
);
|
||||||
}
|
})
|
||||||
);
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@ let
|
||||||
if [ -n "$__HM_SESS_VARS_SOURCED" ]; then return; fi
|
if [ -n "$__HM_SESS_VARS_SOURCED" ]; then return; fi
|
||||||
export __HM_SESS_VARS_SOURCED=1
|
export __HM_SESS_VARS_SOURCED=1
|
||||||
|
|
||||||
|
export GIO_EXTRA_MODULES="${pkgs.dconf}/lib/gio/modules"
|
||||||
export LOCALE_ARCHIVE_2_27="${config.i18n.glibcLocales}/lib/locale/locale-archive"
|
export LOCALE_ARCHIVE_2_27="${config.i18n.glibcLocales}/lib/locale/locale-archive"
|
||||||
export V1="v1"
|
export V1="v1"
|
||||||
export V2="v2-v1"
|
export V2="v2-v1"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue