diff options
| author | Fuwn <[email protected]> | 2024-12-14 22:14:52 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-12-14 22:14:52 -0800 |
| commit | 041be554643157100b802b4bc70208cb2c94b9d7 (patch) | |
| tree | dd65c7b00064c3752615cdb69b4fa518f77983e7 /modules/mac | |
| parent | just: move tasks to justfile (diff) | |
| download | nixos-config-041be554643157100b802b4bc70208cb2c94b9d7.tar.xz nixos-config-041be554643157100b802b4bc70208cb2c94b9d7.zip | |
nara: move configuration to modules
Diffstat (limited to 'modules/mac')
| -rw-r--r-- | modules/mac/default.nix | 6 | ||||
| -rw-r--r-- | modules/mac/homebrew/default.nix | 20 | ||||
| -rw-r--r-- | modules/mac/homebrew/nix-homebrew.nix | 17 | ||||
| -rw-r--r-- | modules/mac/system-packages.nix | 9 |
4 files changed, 52 insertions, 0 deletions
diff --git a/modules/mac/default.nix b/modules/mac/default.nix new file mode 100644 index 0000000..062a044 --- /dev/null +++ b/modules/mac/default.nix @@ -0,0 +1,6 @@ +{ + imports = [ + ./homebrew + ./system-packages.nix + ]; +} diff --git a/modules/mac/homebrew/default.nix b/modules/mac/homebrew/default.nix new file mode 100644 index 0000000..d6bc250 --- /dev/null +++ b/modules/mac/homebrew/default.nix @@ -0,0 +1,20 @@ +{ + imports = [ ./nix-homebrew.nix ]; + + homebrew = { + enable = true; + + brews = [ + "swiftlint" + "gpg" + "pinentry-mac" + "sudo-touchid" + ]; + + casks = [ + "alt-tab" + "iina" + "aerospace" + ]; + }; +} diff --git a/modules/mac/homebrew/nix-homebrew.nix b/modules/mac/homebrew/nix-homebrew.nix new file mode 100644 index 0000000..84684ce --- /dev/null +++ b/modules/mac/homebrew/nix-homebrew.nix @@ -0,0 +1,17 @@ +{ inputs, ... }: +{ + nix-homebrew = { + enable = true; + enableRosetta = true; + user = "ebisu"; + mutableTaps = false; + + taps = with inputs; { + "artginzburg/homebrew-tap" = artginzburg-homebrew-tap; + "homebrew/homebrew-core" = homebrew-core; + "homebrew/homebrew-cask" = homebrew-cask; + "homebrew/homebrew-bundle" = homebrew-bundle; + "nikitabobko/homebrew-tap" = nikitabobko-homebrew-tap; + }; + }; +} diff --git a/modules/mac/system-packages.nix b/modules/mac/system-packages.nix new file mode 100644 index 0000000..04222d0 --- /dev/null +++ b/modules/mac/system-packages.nix @@ -0,0 +1,9 @@ +{ pkgs, ... }: +{ + environment.systemPackages = with pkgs; [ + nixd + nixfmt-rfc-style + nil + just + ]; +} |