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

glab: remove the config file if it is empty or glab disabled

This commit is contained in:
Benedikt Rips 2025-10-31 15:06:41 +01:00 committed by Austin Horstman
parent 7503ffb0b0
commit b5ed4afc22

View file

@ -38,7 +38,7 @@ in
# mode 0600.
systemd.user.tmpfiles.settings.glab = lib.mkIf (cfg.settings != { }) {
rules."${config.xdg.configHome}/glab-cli/config.yml" = {
"C+".argument = yaml.generate "glab-config" cfg.settings;
"C+$".argument = yaml.generate "glab-config" cfg.settings;
z.mode = "0600";
};
};