From 63637f993f7d15cc8750d519e210a7d7c22a1efa Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Mon, 11 Mar 2024 17:15:43 -0700 Subject: reorganize common files for hosts Move the common configuration for nix to its own file. --- hosts/common/darwin/homebrew.nix | 42 ---------------------------------------- hosts/common/darwin/macos.nix | 23 ---------------------- 2 files changed, 65 deletions(-) delete mode 100644 hosts/common/darwin/homebrew.nix delete mode 100644 hosts/common/darwin/macos.nix (limited to 'hosts/common/darwin') diff --git a/hosts/common/darwin/homebrew.nix b/hosts/common/darwin/homebrew.nix deleted file mode 100644 index b358695..0000000 --- a/hosts/common/darwin/homebrew.nix +++ /dev/null @@ -1,42 +0,0 @@ -{ ... }: -{ - # Required for homebrew on aarch64 - environment.systemPath = [ "/opt/homebrew/bin" "/opt/homebrew/sbin" ]; - - homebrew = { - enable = true; - onActivation.autoUpdate = true; - onActivation.upgrade = true; - - brews = [ - "aspell" # spelling - "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 = [ - "1password-cli" - "docker" - "element" - "emacs" - "font-monaspace" # https://github.com/githubnext/monaspace - "font-source-code-pro" - "iterm2" - "netnewswire" - "transmission" - "vlc" - "wireshark" - "zed" - "zoom" - ]; - }; -} diff --git a/hosts/common/darwin/macos.nix b/hosts/common/darwin/macos.nix deleted file mode 100644 index edc57a0..0000000 --- a/hosts/common/darwin/macos.nix +++ /dev/null @@ -1,23 +0,0 @@ -{ ... }: { - system.defaults.dock.autohide = true; - system.defaults.dock.orientation = "left"; - system.defaults.dock.showhidden = false; - system.defaults.dock.show-recents = false; - # don’t rearrange spaces based on the most recent use - system.defaults.dock.mru-spaces = false; - 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 - DSDontWriteNetworkStores = true; - DSDontWriteUSBStores = true; - }; - }; -} -- cgit 1.4.1