@cryptotaxi247 / infra-1 / commits / e720888f

macs: set computer name to propagate name into mdm

Martin Weinelt committed Apr 6, 2026 at 09:27 UTC e720888f124d940996bc276a88435f67eb693eb6
1 file changed +7 -2
macs/flake-module.nix
+7 -2
@@ -3,7 +3,7 @@
3 flake.darwinConfigurations =
4 let
5 mkNixDarwin =
6 - localHostName: entrypoint:
6 + hostname: entrypoint:
7 inputs.darwin.lib.darwinSystem {
8 system = "aarch64-darwin";
9
@@ -13,7 +13,12 @@
13
14 modules = [
15 {
16 - networking = { inherit localHostName; };
16 + networking = {
17 + # the name used to resolve the flake output
18 + localHostName = hostname;
19 + # the name that propagates into the MDM
20 + computerName = hostname;
21 + };
22 }
23 entrypoint
24 ];