⚰️ remove darwin configs

This commit is contained in:
James Walker 2023-10-13 21:25:49 -04:00
parent 0c37402829
commit 52b24a13eb
Signed by: walkah
SSH Key Fingerprint: SHA256:f7Gn4jO4BFHZxWfKTTzEAfWz+cLW51IyGFl9MjDyZGI
3 changed files with 3 additions and 164 deletions

3
darwin/README.md Normal file
View File

@ -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).

View File

@ -1,83 +0,0 @@
{ config, pkgs, ... }:
{
imports = [ <home-manager/nix-darwin> ./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;
}

View File

@ -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;
};
};
}