mirror of
https://github.com/srid/nixos-config.git
synced 2026-01-10 18:22:35 +08:00
Add mac mini server
This commit is contained in:
parent
301f333012
commit
90436d0b8e
2 changed files with 33 additions and 0 deletions
28
configurations/darwin/naivete.nix
Normal file
28
configurations/darwin/naivete.nix
Normal file
|
|
@ -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;
|
||||
}
|
||||
5
justfile
5
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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue