From 17928bd2eabb2dca1c870c8af3f43eeac96e181b Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Wed, 2 Aug 2023 13:41:53 +0300 Subject: 2023-08-02 --- modules/common/git.nix | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'modules/common/git.nix') diff --git a/modules/common/git.nix b/modules/common/git.nix index 0bd7720..2e5c834 100644 --- a/modules/common/git.nix +++ b/modules/common/git.nix @@ -13,23 +13,20 @@ in { mkEnableOption "Git client"; config = mkIf cfg.client.enable { - secrets = let - # HACK MacOS doesn't support XDG specifications. - configHome = "${config.my.home}/.config"; - in { + secrets = { glab-cli-config = { file = "${inputs.self}/secrets/glab-cli-config"; - path = "${configHome}/glab-cli/config.yml"; + path = "${config.dirs.config}/glab-cli/config.yml"; owner = localUsername; }; gh-hosts = { file = "${inputs.self}/secrets/gh-hosts"; - path = "${configHome}/gh/hosts.yml"; + path = "${config.dirs.config}/gh/hosts.yml"; owner = localUsername; }; hut = { file = "${inputs.self}/secrets/hut"; - path = "${configHome}/hut/config"; + path = "${config.dirs.config}/hut/config"; owner = localUsername; }; }; -- cgit 1.4.1