| 1 | { inputs, ... }: |
| 2 | { |
| 3 | flake.darwinConfigurations = |
| 4 | let |
| 5 | lib = inputs.nixpkgs.legacyPackages.aarch64-darwin.lib; |
| 6 | mkNixDarwin = |
| 7 | hostname: entrypoint: args: |
| 8 | inputs.darwin.lib.darwinSystem { |
| 9 | system = args.system or "aarch64-darwin"; |
| 10 | |
| 11 | specialArgs = { |
| 12 | inherit inputs; |
| 13 | }; |
| 14 | |
| 15 | modules = [ |
| 16 | { |
| 17 | networking = { |
| 18 | # the name as it appears on the terminal and in the queue-runner |
| 19 | # inherited by `localHostName` for the flake-ref |
| 20 | hostName = hostname; |
| 21 | # the name that propagates into the MDM |
| 22 | computerName = hostname; |
| 23 | }; |
| 24 | |
| 25 | system.stateVersion = 5; |
| 26 | } |
| 27 | entrypoint |
| 28 | ] |
| 29 | ++ (args.extraModules or [ ]); |
| 30 | }; |
| 31 | in |
| 32 | { |
| 33 | bootstrap = mkNixDarwin "bootstrap" ./profiles/bootstrap.nix { }; |
| 34 | |
| 35 | # M1 8C, 16G, 256G (Hetzner) |
| 36 | enormous-catfish = mkNixDarwin "enormous-catfish" ./profiles/m1.nix { }; |
| 37 | growing-jennet = mkNixDarwin "growing-jennet" ./profiles/m1.nix { }; |
| 38 | intense-heron = mkNixDarwin "intense-heron" ./profiles/m1.nix { }; |
| 39 | maximum-snail = mkNixDarwin "maximum-snail" ./profiles/m1.nix { }; |
| 40 | sweeping-filly = mkNixDarwin "sweeping-filly" ./profiles/m1.nix { }; |
| 41 | |
| 42 | # M1 8C, 16G, 256G (Hosted by Flying-Circus) |
| 43 | norwegian-blue = mkNixDarwin "norwegian-blue" ./profiles/m1.nix { }; |
| 44 | |
| 45 | # M2 8C, 24G, 1TB (Oakhost) |
| 46 | eager-heisenberg = mkNixDarwin "eager-heisenberg" ./profiles/m2.large.nix { }; |
| 47 | kind-lumiere = mkNixDarwin "kind-lumiere" ./profiles/m2.large.nix { }; |
| 48 | |
| 49 | # x86_64, 12C, 32GB, 500G (Macstadium) |
| 50 | # 12 CPU cores, 32 GB RAM, 500 GB disk |
| 51 | nixos-foundation-macstadium-44911305 = mkNixDarwin "mac01.ofborg.org" ./profiles/ofborg-x86_64.nix { |
| 52 | system = "x86_64-darwin"; |
| 53 | extraModules = [ |
| 54 | { networking.localHostName = "nixos-foundation-macstadium-44911305"; } |
| 55 | ]; |
| 56 | }; |
| 57 | nixos-foundation-macstadium-44911362 = mkNixDarwin "mac02.ofborg.org" ./profiles/ofborg-x86_64.nix { |
| 58 | system = "x86_64-darwin"; |
| 59 | extraModules = [ |
| 60 | { networking.localHostName = "nixos-foundation-macstadium-44911362"; } |
| 61 | ]; |
| 62 | }; |
| 63 | nixos-foundation-macstadium-44911507 = mkNixDarwin "mac03.ofborg.org" ./profiles/ofborg-x86_64.nix { |
| 64 | system = "x86_64-darwin"; |
| 65 | extraModules = [ |
| 66 | { networking.localHostName = "nixos-foundation-macstadium-44911507"; } |
| 67 | ]; |
| 68 | }; |
| 69 | |
| 70 | # M1 8C, 16G, 256M (Macstadium) |
| 71 | nixos-foundation-macstadium-44911207 = mkNixDarwin "mac04.ofborg.org" ./profiles/ofborg-m1.nix { |
| 72 | extraModules = [ |
| 73 | { |
| 74 | networking.localHostName = "nixos-foundation-macstadium-44911207"; |
| 75 | ids.gids.nixbld = lib.mkForce 350; |
| 76 | } |
| 77 | ]; |
| 78 | }; |
| 79 | nixos-foundation-macstadium-44911104 = mkNixDarwin "mac05.ofborg.org" ./profiles/ofborg-m1.nix { |
| 80 | extraModules = [ |
| 81 | { |
| 82 | networking.localHostName = "nixos-foundation-macstadium-44911104"; |
| 83 | ids.gids.nixbld = lib.mkForce 350; |
| 84 | } |
| 85 | ]; |
| 86 | }; |
| 87 | }; |
| 88 | } |