diff --git a/darwin/README.md b/darwin/README.md new file mode 100644 index 0000000..9352b10 --- /dev/null +++ b/darwin/README.md @@ -0,0 +1,3 @@ +# Darwin Configuration (deprecated) + +I'm not using this repo for `nix-darwin` configuration anymore. If you're curious how I have my machine configured, check out [this repo](https://github.com/walkah/athens). diff --git a/darwin/configuration.nix b/darwin/configuration.nix deleted file mode 100644 index 9522502..0000000 --- a/darwin/configuration.nix +++ /dev/null @@ -1,83 +0,0 @@ -{ config, pkgs, ... }: - -{ - imports = [ ./homebrew.nix ]; - - # List packages installed in system profile. To search by name, run: - # $ nix-env -qaP | grep wget - environment.systemPackages = with pkgs; [ - deno - elixir - emacs - exercism - go - niv - nodejs - rustup - ]; - - # Use a custom configuration.nix location. - # $ darwin-rebuild switch -I darwin-config=$HOME/.config/nixpkgs/darwin/configuration.nix - # environment.darwinConfig = "$HOME/.config/nixpkgs/darwin/configuration.nix"; - - # Auto upgrade nix package and the daemon service. - services.nix-daemon.enable = true; - nix.package = pkgs.nix; - nix.extraOptions = '' - experimental-features = nix-command flakes - ''; - - nix.distributedBuilds = true; - nix.buildMachines = [{ - hostName = "plato"; - systems = [ "x86_64-linux" "aarch64-linux" ]; - maxJobs = 12; - speedFactor = 2; - supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ]; - }]; - - # Binary Cache for Haskell.nix - nix.binaryCachePublicKeys = - [ "hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=" ]; - nix.binaryCaches = [ "https://hydra.iohk.io" ]; - - # Create /etc/bashrc that loads the nix-darwin environment. - programs = { - zsh = { - enable = true; - promptInit = ""; - }; - }; - # programs.fish.enable = true; - - users.nix.configureBuildUsers = true; - users.users.walkah = { - home = "/Users/walkah"; - shell = pkgs.zsh; - }; - home-manager.users.walkah = import ../home.nix; - - services.lorri.enable = true; - - system = { - defaults = { - dock = { - autohide = true; - orientation = "left"; - }; - }; - }; - - system.activationScripts.applications.text = pkgs.lib.mkForce '' - rm -rf /Applications/Nix - mkdir -p /Applications/Nix - for app in $(find ${config.system.build.applications}/Applications -maxdepth 1 -type l); do - src="$(/usr/bin/stat -f%Y "$app")" - cp -r "$src" /Applications/Nix - done - ''; - - # Used for backwards compatibility, please read the changelog before changing. - # $ darwin-rebuild changelog - system.stateVersion = 4; -} diff --git a/darwin/homebrew.nix b/darwin/homebrew.nix deleted file mode 100644 index d1ed823..0000000 --- a/darwin/homebrew.nix +++ /dev/null @@ -1,81 +0,0 @@ -_: - -{ - homebrew = { - enable = true; - autoUpdate = true; - cleanup = "zap"; - global = { - brewfile = true; - noLock = true; - }; - - taps = [ - "homebrew/cask" - "homebrew/cask-drivers" - "homebrew/cask-fonts" - "homebrew/cask-versions" - ]; - - brews = [ "coreutils" ]; - - casks = [ - "1password" - "adobe-acrobat-reader" - "balenaetcher" - "bartender" - "brave-browser" - "bunch" - "calibre" - "dash" - "discord" - "docker" - "element" - "fantastical" - "figma" - "firefox" - "firefox-developer-edition" - "font-jetbrains-mono" - "font-jetbrains-mono-nerd-font" - "gather" - "google-chrome" - "gpg-suite" - "hazel" - "ipfs" - "iterm2" - "keybase" - "logitech-options" - "logseq" - "microsoft-edge" - "minecraft" - "obsidian" - "plexamp" - "r" - "raycast" - "rescuetime" - "rocket" - "rstudio" - "slack" - "sonos" - "spotify" - "stats" - "steam" - "syncthing" - "synology-drive" - "visual-studio-code" - "zoom" - ]; - - masApps = { - Bumpr = 1166066070; - "Day One" = 1055511498; - Drafts = 1435957248; - Parcel = 639968404; - Reeder = 1529448980; - Tailscale = 1475387142; - Todoist = 585829637; - UlyssesMac = 1225570693; - Xcode = 497799835; - }; - }; -}