diff options
| author | Fuwn <[email protected]> | 2024-12-13 00:27:00 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-12-13 00:27:00 -0800 |
| commit | 1282b8d4f04f243476b17bb1410bfa7a0b5e18ff (patch) | |
| tree | 29bf7fb4360da899cc3fc08c7b39e2502e13f11a | |
| parent | host: nara (diff) | |
| download | nixos-config-1282b8d4f04f243476b17bb1410bfa7a0b5e18ff.tar.xz nixos-config-1282b8d4f04f243476b17bb1410bfa7a0b5e18ff.zip | |
nara: move configuration to module
| -rw-r--r-- | hosts/nara/configuration.nix | 41 | ||||
| -rw-r--r-- | hosts/nara/default.nix | 42 |
2 files changed, 44 insertions, 39 deletions
diff --git a/hosts/nara/configuration.nix b/hosts/nara/configuration.nix new file mode 100644 index 0000000..24b8df4 --- /dev/null +++ b/hosts/nara/configuration.nix @@ -0,0 +1,41 @@ +{ inputs, 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; + }; + }; +} diff --git a/hosts/nara/default.nix b/hosts/nara/default.nix index c972d31..fe73230 100644 --- a/hosts/nara/default.nix +++ b/hosts/nara/default.nix @@ -1,49 +1,13 @@ { 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; - }; - }; - }; + pkgs = (kansaiPkgs { })."aarch64-darwin"; in { flake.darwinConfigurations.nara = inputs.nix-darwin.lib.darwinSystem { - pkgs = (kansaiPkgs { })."aarch64-darwin"; + inherit pkgs; modules = [ - configuration + (import ./configuration.nix { inherit inputs pkgs; }) inputs.determinate.darwinModules.default inputs.nix-homebrew.darwinModules.nix-homebrew ]; |