diff options
author | Franck Cuny <franck@fcuny.net> | 2024-03-11 17:26:22 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2024-03-11 17:26:22 -0700 |
commit | 1248d431ff09c15df666b381059efb8884718a9b (patch) | |
tree | 7959ce50cd52a99998430b13d0e47feff9630789 /hosts/common | |
parent | reorganize common files for hosts (diff) | |
download | world-1248d431ff09c15df666b381059efb8884718a9b.tar.gz |
switch to absolute path
Diffstat (limited to 'hosts/common')
-rw-r--r-- | hosts/common/homebrew.nix | 42 | ||||
-rw-r--r-- | hosts/common/macos.nix | 23 | ||||
-rw-r--r-- | hosts/common/nix.nix | 24 |
3 files changed, 0 insertions, 89 deletions
diff --git a/hosts/common/homebrew.nix b/hosts/common/homebrew.nix deleted file mode 100644 index b358695..0000000 --- a/hosts/common/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/macos.nix b/hosts/common/macos.nix deleted file mode 100644 index edc57a0..0000000 --- a/hosts/common/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; - }; - }; -} diff --git a/hosts/common/nix.nix b/hosts/common/nix.nix deleted file mode 100644 index c828a16..0000000 --- a/hosts/common/nix.nix +++ /dev/null @@ -1,24 +0,0 @@ -{ pkgs, ... }: { - 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" "fcuny" ]; - experimental-features = [ "nix-command" "flakes" ]; - }; - }; - - nixpkgs.config = { - allowUnfree = true; - permittedInsecurePackages = [ - "nix-2.16.2" # FIXME https://github.com/nix-community/nixd/issues/357 - ]; - }; -} |