1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00

vesktop: fix config path on darwin (#6889)

This commit is contained in:
awwpotato 2025-04-22 20:41:31 -07:00 committed by GitHub
parent 97a62d8eef
commit 7ef3137035
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -92,11 +92,9 @@ in
};
};
config = lib.mkIf cfg.enable {
home.packages = [
(cfg.package.override { withSystemVencord = cfg.vencord.useSystem; })
];
xdg.configFile =
config = lib.mkIf cfg.enable (
let
config =
lib.attrsets.unionOfDisjoint
{
"vesktop/settings.json".source = jsonFormat.generate "vesktop-settings" cfg.settings;
@ -115,6 +113,17 @@ in
}
) cfg.vencord.themes
);
};
in
lib.mkMerge [
{
home.packages = [
(cfg.package.override { withSystemVencord = cfg.vencord.useSystem; })
];
}
(lib.mkIf (!pkgs.stdenv.hostPlatform.isDarwin) { xdg.configFile = config; })
(lib.mkIf pkgs.stdenv.hostPlatform.isDarwin {
home.file = lib.mapAttrs' (n: v: lib.nameValuePair "Library/Application Support/${n}" v) config;
})
]
);
}