From 90436d0b8ebae64729729b0509ecb8a2878e04f9 Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Sat, 18 Jan 2025 13:15:07 -0500 Subject: [PATCH] Add mac mini server --- configurations/darwin/naivete.nix | 28 ++++++++++++++++++++++++++++ justfile | 5 +++++ 2 files changed, 33 insertions(+) create mode 100644 configurations/darwin/naivete.nix diff --git a/configurations/darwin/naivete.nix b/configurations/darwin/naivete.nix new file mode 100644 index 0000000..bbe3d4b --- /dev/null +++ b/configurations/darwin/naivete.nix @@ -0,0 +1,28 @@ +# Configuration for my M1 Macbook Max as headless server +{ flake, ... }: + +let + inherit (flake) inputs; + inherit (inputs) self; +in +{ + nixos-unified.sshTarget = "srid@naivete"; + + imports = [ + self.darwinModules.default + ]; + + nixpkgs.hostPlatform = "aarch64-darwin"; + networking.hostName = "naivete"; + + services.tailscale.enable = true; + + system.keyboard = { + enableKeyMapping = true; + remapCapsLockToControl = true; + }; + + # Used for backwards compatibility, please read the changelog before changing. + # $ darwin-rebuild changelog + system.stateVersion = 4; +} diff --git a/justfile b/justfile index d97fe6c..2d3d22d 100644 --- a/justfile +++ b/justfile @@ -16,6 +16,11 @@ nom: pureintent: nix run . pureintent +# Deploy to Mac Mini +[group('deploy')] +naivete: + nix run . naivete + # Deploy to infinitude (mac) [group('deploy')] infinitude: