aboutsummaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
Diffstat (limited to 'hosts')
-rw-r--r--hosts/common/darwin/homebrew.nix7
-rw-r--r--hosts/common/darwin/macos.nix5
-rw-r--r--hosts/work/default.nix35
3 files changed, 46 insertions, 1 deletions
diff --git a/hosts/common/darwin/homebrew.nix b/hosts/common/darwin/homebrew.nix
index 0a7a2c9..60fbd6b 100644
--- a/hosts/common/darwin/homebrew.nix
+++ b/hosts/common/darwin/homebrew.nix
@@ -10,12 +10,17 @@
brews = [
"aspell" # spelling
- "kind" # to run local k8s cluster
"envoy" # to do some testing with envoy
+ "go" # it's also installed by nix, but this is a fallback, just in case
+ "hashicorp/tap/boundary" # https://www.boundaryproject.io/
+ "kind" # to run local k8s cluster
+ "kubebuilder"
+ "s3cmd"
];
taps = [
"homebrew/cask-fonts"
+ "hashicorp/tap"
];
casks = [
diff --git a/hosts/common/darwin/macos.nix b/hosts/common/darwin/macos.nix
index 810d64d..edc57a0 100644
--- a/hosts/common/darwin/macos.nix
+++ b/hosts/common/darwin/macos.nix
@@ -8,6 +8,11 @@
system.defaults.finder.AppleShowAllExtensions = true;
system.defaults.screencapture.location = "~/Documents/screenshots";
+ system.keyboard = {
+ enableKeyMapping = true;
+ remapCapsLockToControl = true;
+ };
+
system.defaults.CustomUserPreferences = {
"com.apple.desktopservices" = {
# Avoid creating .DS_Store files on network or USB volumes
diff --git a/hosts/work/default.nix b/hosts/work/default.nix
new file mode 100644
index 0000000..ae9a765
--- /dev/null
+++ b/hosts/work/default.nix
@@ -0,0 +1,35 @@
+{ pkgs, ... }:
+let user = "fcuny"; in
+{
+ services.nix-daemon.enable = true;
+
+ nix = {
+ package = pkgs.nixFlakes;
+
+ gc = {
+ user = "root";
+ automatic = true;
+ interval = { Weekday = 0; Hour = 2; Minute = 0; };
+ options = "--delete-older-than 30d";
+ };
+
+ settings = {
+ trusted-users = [ "@admin" "${user}" ];
+ experimental-features = [ "nix-command" "flakes" ];
+ };
+ };
+
+ # in order to install things like 1password's extensions
+ nixpkgs.config.allowUnfree = true;
+
+ programs.zsh.enable = true;
+
+ users.users.fcuny.home = "/Users/fcuny";
+
+ # Touch ID for sudo auth
+ security.pam.enableSudoTouchIdAuth = true;
+
+ home-manager.useGlobalPkgs = true;
+ home-manager.useUserPackages = true;
+ home-manager.users.fcuny = import ../../nix/profiles/home-manager/work.nix;
+}