diff options
| author | Franck Cuny <franck@fcuny.net> | 2025-07-21 19:38:03 -0700 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2025-07-21 19:38:03 -0700 |
| commit | e6a47bb3eb1e757b947c6c48720e47592fe98741 (patch) | |
| tree | 97c0245e00e14655ff7ed3529b6c796c47dd3c1d | |
| parent | keep organizing into modules and profiles (diff) | |
| download | infra-e6a47bb3eb1e757b947c6c48720e47592fe98741.tar.gz | |
install gh only on work machine
| -rw-r--r-- | users/profiles/gh.nix | 16 | ||||
| -rw-r--r-- | users/profiles/git.nix | 14 | ||||
| -rw-r--r-- | users/profiles/work.nix | 5 |
3 files changed, 20 insertions, 15 deletions
diff --git a/users/profiles/gh.nix b/users/profiles/gh.nix new file mode 100644 index 0000000..bf74766 --- /dev/null +++ b/users/profiles/gh.nix @@ -0,0 +1,16 @@ +{ ... }: +{ + programs.gh = { + enable = true; + + settings = { + version = 1; + git_protocol = "ssh"; + prompt = "enabled"; + aliases = { + co = "pr checkout"; + vw = "pr view --web"; + }; + }; + }; +} diff --git a/users/profiles/git.nix b/users/profiles/git.nix index de066e2..ebc753b 100644 --- a/users/profiles/git.nix +++ b/users/profiles/git.nix @@ -13,20 +13,6 @@ in git-credential-manager ]; - programs.gh = { - enable = true; - - settings = { - version = 1; - git_protocol = "ssh"; - prompt = "enabled"; - aliases = { - co = "pr checkout"; - vw = "pr view --web"; - }; - }; - }; - programs.git = { enable = true; diff --git a/users/profiles/work.nix b/users/profiles/work.nix index f502b6a..8d0f4fd 100644 --- a/users/profiles/work.nix +++ b/users/profiles/work.nix @@ -22,7 +22,10 @@ let ''; in { - imports = [ ./k8s.nix ]; + imports = [ + ./gh.nix + ./k8s.nix + ]; home.packages = with pkgs; [ awscli2 |
