about summary refs log tree commit diff
path: root/nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2024-11-17 11:37:52 -0800
committerFranck Cuny <franck@fcuny.net>2024-11-17 11:37:52 -0800
commit25ae466f5623dff81ceb8fd10b24195a01b0f3f1 (patch)
tree5d9c490d22ae16929389534a9b940c18f83b9c95 /nix
parentmove machine configurations under darwin and nixos (diff)
downloadworld-25ae466f5623dff81ceb8fd10b24195a01b0f3f1.tar.gz
manage a few more things with nix instead of homebrew
Diffstat (limited to '')
-rw-r--r--nix/hosts/darwin/homebrew.nix14
-rw-r--r--nix/profiles/home-manager/work.nix23
2 files changed, 22 insertions, 15 deletions
diff --git a/nix/hosts/darwin/homebrew.nix b/nix/hosts/darwin/homebrew.nix
index 0840b06..687bf2e 100644
--- a/nix/hosts/darwin/homebrew.nix
+++ b/nix/hosts/darwin/homebrew.nix
@@ -7,20 +7,6 @@
     onActivation.autoUpdate = true;
     onActivation.upgrade = true;
 
-    brews = [
-      "go" # it's also installed by nix, but this is a fallback, just in case
-
-      # various hashicorp related tools
-      "hashicorp/tap/boundary" # https://www.boundaryproject.io/
-      "hashicorp/tap/nomad-pack"
-
-      # kubernetes stuff
-      "kind" # to run local k8s cluster
-      "kubebuilder"
-    ];
-
-    taps = [ "hashicorp/tap" ];
-
     casks = [
       "1password-cli"
       "docker"
diff --git a/nix/profiles/home-manager/work.nix b/nix/profiles/home-manager/work.nix
index 31edd7e..416c442 100644
--- a/nix/profiles/home-manager/work.nix
+++ b/nix/profiles/home-manager/work.nix
@@ -1,8 +1,29 @@
-{ ... }: {
+{ pkgs, ... }: {
 
   home.stateVersion = "23.05";
 
   imports = [ ./mac.nix ];
 
   programs.git = { userEmail = "fcuny@roblox.com"; };
+
+  home.packages = with pkgs; [
+    gh # github cli tool
+    kind # k8s in docker
+    kubebuilder # generate controller
+    kubectl
+    kubernetes-helm # deploy applications
+    kubie # kubeconfig browser https://github.com/sbstp/kubie
+
+    boundary
+    nomad-pack
+  ];
+
+  home.file.kubie = {
+    target = ".kube/kubie.yaml";
+    text = ''
+      shell: fish
+      prompt:
+        fish_use_rprompt: true
+    '';
+  };
 }