diff options
Diffstat (limited to '')
-rw-r--r-- | modules/common/git.nix | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/modules/common/git.nix b/modules/common/git.nix index 2a0554f..c3ebafc 100644 --- a/modules/common/git.nix +++ b/modules/common/git.nix @@ -1,6 +1,8 @@ { config, + inputs, lib, + localUsername ? lib.my.username, pkgs, ... }: @@ -11,6 +13,27 @@ in { mkEnableOption "Git client"; config = mkIf cfg.client.enable { + secrets = let + # HACK Darwin doesn't support XDG specifications. + configHome = "${config.my.home}/.config"; + in { + glab-cli-config = { + file = "${inputs.self}/secrets/glab-cli-config"; + path = "${configHome}/glab-cli/config.yml"; + owner = localUsername; + }; + gh-hosts = { + file = "${inputs.self}/secrets/gh-hosts"; + path = "${configHome}/gh/hosts.yml"; + owner = localUsername; + }; + hut = { + file = "${inputs.self}/secrets/hut"; + path = "${configHome}/hut/config"; + owner = localUsername; + }; + }; + hm = { home.packages = with pkgs; [glab hut]; |