summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-12-11 15:58:04 -0800
committerFuwn <[email protected]>2024-12-11 16:11:45 -0800
commit8fc491a1919c152cad9f17c14647c170daf93b9f (patch)
treea7b37c845bcce87fda90e55ed88c6c8fc2440428 /hosts
parentlock: tsutsumi (diff)
downloadnixos-config-8fc491a1919c152cad9f17c14647c170daf93b9f.tar.xz
nixos-config-8fc491a1919c152cad9f17c14647c170daf93b9f.zip
host: nara
Diffstat (limited to 'hosts')
-rw-r--r--hosts/default.nix1
-rw-r--r--hosts/nara/default.nix51
2 files changed, 52 insertions, 0 deletions
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
+ ];
+ };
+}