From 8fc491a1919c152cad9f17c14647c170daf93b9f Mon Sep 17 00:00:00 2001 From: Fuwn Date: Wed, 11 Dec 2024 15:58:04 -0800 Subject: host: nara --- hosts/default.nix | 1 + hosts/nara/default.nix | 51 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 hosts/nara/default.nix (limited to 'hosts') diff --git a/hosts/default.nix b/hosts/default.nix index e377cb4..6d61e10 100644 --- a/hosts/default.nix +++ b/hosts/default.nix @@ -49,5 +49,6 @@ (import ./hoka minimalOptions) (import ./kansai pcOptions) (import ./kioku minimalOptions) + (import ./nara { inherit inputs kansaiPkgs; }) ]; } diff --git a/hosts/nara/default.nix b/hosts/nara/default.nix new file mode 100644 index 0000000..c972d31 --- /dev/null +++ b/hosts/nara/default.nix @@ -0,0 +1,51 @@ +{ inputs, kansaiPkgs }: +let + configuration = + { pkgs, ... }: + { + system.stateVersion = 5; + + environment.systemPackages = with pkgs; [ + nixd + nixfmt-rfc-style + nil + just + ]; + + homebrew = { + enable = true; + brews = [ "swiftlint" "gpg" "pinentry-mac" ]; + + casks = [ + "alt-tab" + "iina" + "aerospace" + ]; + }; + + nix-homebrew = { + enable = true; + enableRosetta = true; + user = "ebisu"; + mutableTaps = false; + + taps = with inputs; { + "homebrew/homebrew-core" = homebrew-core; + "homebrew/homebrew-cask" = homebrew-cask; + "homebrew/homebrew-bundle" = homebrew-bundle; + "nikitabobko/homebrew-tap" = nikitabobko-homebrew-tap; + }; + }; + }; +in +{ + flake.darwinConfigurations.nara = inputs.nix-darwin.lib.darwinSystem { + pkgs = (kansaiPkgs { })."aarch64-darwin"; + + modules = [ + configuration + inputs.determinate.darwinModules.default + inputs.nix-homebrew.darwinModules.nix-homebrew + ]; + }; +} -- cgit v1.2.3