aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--users/profiles/gh.nix16
-rw-r--r--users/profiles/git.nix14
-rw-r--r--users/profiles/work.nix5
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