From 1c55f14a09de8ffe6a2f5f0f858216dd0d04ed12 Mon Sep 17 00:00:00 2001 From: Rounak Datta Date: Thu, 6 Jun 2024 23:13:21 +0530 Subject: [PATCH] Chore: Set up a new workstation (#24) * Add Bandwidth menubar app * Add remaining packages * Rename host --- configs/emacs/packages.el | 3 ++- flake.nix | 8 ++++---- hosts/{ckmac => trueswiftie}/configuration.nix | 10 +++++++++- hosts/{ckmac => trueswiftie}/home.nix | 0 hosts/{ckmac => trueswiftie}/software.nix | 4 ++++ 5 files changed, 19 insertions(+), 6 deletions(-) rename hosts/{ckmac => trueswiftie}/configuration.nix (68%) rename hosts/{ckmac => trueswiftie}/home.nix (100%) rename hosts/{ckmac => trueswiftie}/software.nix (96%) diff --git a/configs/emacs/packages.el b/configs/emacs/packages.el index d81fd26..89d104d 100644 --- a/configs/emacs/packages.el +++ b/configs/emacs/packages.el @@ -56,4 +56,5 @@ (package! exec-path-from-shell) ;; this is required, otherwise only the script of the PDF would be shown -(pdf-tools-install) +;; TODO: unfortunately this isn't working at the moment, and needs to be executed manually +;; (pdf-tools-install) diff --git a/flake.nix b/flake.nix index b0497b8..ef4f3e0 100644 --- a/flake.nix +++ b/flake.nix @@ -52,14 +52,14 @@ # starting point of a user-level Nix installation on an aarch64 macOS system darwinConfigurations = { - ckmac = nix-darwin.lib.darwinSystem { + trueswiftie = nix-darwin.lib.darwinSystem { system = "aarch64-darwin"; modules = [ mac-app-util.darwinModules.default { imports = [ - ./hosts/ckmac/configuration.nix - ./hosts/ckmac/software.nix + ./hosts/trueswiftie/configuration.nix + ./hosts/trueswiftie/software.nix ]; _module.args.self = self; } @@ -73,7 +73,7 @@ home-manager.users.rounak = { imports = [ mac-app-util.homeManagerModules.default - ./hosts/ckmac/home.nix + ./hosts/trueswiftie/home.nix ]; }; } diff --git a/hosts/ckmac/configuration.nix b/hosts/trueswiftie/configuration.nix similarity index 68% rename from hosts/ckmac/configuration.nix rename to hosts/trueswiftie/configuration.nix index 1c098b7..702c3bc 100644 --- a/hosts/ckmac/configuration.nix +++ b/hosts/trueswiftie/configuration.nix @@ -8,7 +8,7 @@ services.nix-daemon.enable = true; - networking.hostName = "ckmac"; + networking.hostName = "trueswiftie"; users.users.rounak = { # workaround for https://github.com/nix-community/home-manager/issues/4026 @@ -26,4 +26,12 @@ system.activationScripts.postActivation.text = '' chsh -s /run/current-system/sw/bin/fish rounak ''; + + system.activationScripts.extraActivation.text = '' + # there's no going back from Apple Silicon + softwareupdate --install-rosetta --agree-to-license + + # yes, we live up in the clouds + /opt/homebrew/bin/gcloud components install gke-gcloud-auth-plugin + ''; } diff --git a/hosts/ckmac/home.nix b/hosts/trueswiftie/home.nix similarity index 100% rename from hosts/ckmac/home.nix rename to hosts/trueswiftie/home.nix diff --git a/hosts/ckmac/software.nix b/hosts/trueswiftie/software.nix similarity index 96% rename from hosts/ckmac/software.nix rename to hosts/trueswiftie/software.nix index 99f9bf1..3d96c3f 100644 --- a/hosts/ckmac/software.nix +++ b/hosts/trueswiftie/software.nix @@ -50,6 +50,8 @@ "yarn" # the JS package manager, not the hadoop scheduler "azure-cli" "ollama" + "tree" + "terraform" ]; casks = [ @@ -81,11 +83,13 @@ "bitwarden" "google-earth-pro" "calibre" + "hiddenbar" ]; # `mas search <>` can help pinpoint package name masApps = { "Tailscale" = 1475387142; # Tailscale does have a brew package, however this is slightly more complete + "Bandwidth+" = 490461369; }; }; }