1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-23 18:29:47 +01:00

dconf: make sure the configuration directory exists

Fixes #1731
This commit is contained in:
Robert Helgesson 2021-01-20 00:21:00 +01:00
parent 6f5fa6350d
commit b0c8727286
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -46,6 +46,9 @@ in {
};
config = mkIf (cfg.enable && cfg.settings != { }) {
# Make sure the dconf directory exists.
xdg.configFile."dconf/.keep".source = builtins.toFile "keep" "";
home.activation.dconfSettings = hm.dag.entryAfter [ "installPackages" ]
(let iniFile = pkgs.writeText "hm-dconf.ini" (toDconfIni cfg.settings);
in ''