Skip to content

Commit

Permalink
Chore: Set up a new workstation (#24)
Browse files Browse the repository at this point in the history
* Add Bandwidth menubar app

* Add remaining packages

* Rename host
  • Loading branch information
rounakdatta authored Jun 6, 2024
1 parent b7f017c commit 1c55f14
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 6 deletions.
3 changes: 2 additions & 1 deletion configs/emacs/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)
8 changes: 4 additions & 4 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -73,7 +73,7 @@
home-manager.users.rounak = {
imports = [
mac-app-util.homeManagerModules.default
./hosts/ckmac/home.nix
./hosts/trueswiftie/home.nix
];
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
'';
}
File renamed without changes.
4 changes: 4 additions & 0 deletions hosts/ckmac/software.nix → hosts/trueswiftie/software.nix
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@
"yarn" # the JS package manager, not the hadoop scheduler
"azure-cli"
"ollama"
"tree"
"terraform"
];

casks = [
Expand Down Expand Up @@ -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;
};
};
}

0 comments on commit 1c55f14

Please sign in to comment.