From e01305c4d5e3b0c4396f8fcf2d9a29b0e70ec090 Mon Sep 17 00:00:00 2001 From: Chris van der Loo Date: Mon, 24 Aug 2026 22:02:33 -0700 Subject: [PATCH] refactor: stop managing hostnames --- flake.nix | 8 +------- lib/default.nix | 3 --- templates/darwin-host/flake.nix | 1 - 3 files changed, 1 insertion(+), 11 deletions(-) diff --git a/flake.nix b/flake.nix index c728db1..80a564b 100644 --- a/flake.nix +++ b/flake.nix @@ -11,7 +11,7 @@ }; outputs = - inputs@{ self, nixpkgs, ... }: + inputs@{ nixpkgs, ... }: let dotfilesLib = import ./lib { inherit (inputs) @@ -60,18 +60,12 @@ example = (dotfilesLib.mkDarwin { system = "aarch64-darwin"; - hostName = "example-host"; darwinStateVersion = 6; homeStateVersion = "26.05"; user = exampleUser; vcs = exampleVcs; modules = exampleModules; }).system; - - privacy = import ./checks/privacy.nix { - pkgs = nixpkgs.legacyPackages.aarch64-darwin; - source = self; - }; }; checks.aarch64-linux.example = diff --git a/lib/default.nix b/lib/default.nix index 0391413..d0b15fc 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -34,7 +34,6 @@ in mkDarwin = { system, - hostName, darwinStateVersion, homeStateVersion, user, @@ -46,7 +45,6 @@ in let host = { inherit system darwinStateVersion homeStateVersion; - hostName = requireNonEmpty "hostName" hostName; user = validateUser user; vcs = validateVcs vcs; }; @@ -57,7 +55,6 @@ in home-manager.darwinModules.home-manager ../modules/darwin ({ ... }: { - networking.hostName = host.hostName; system.configurationRevision = if source == null then null else source.rev or source.dirtyRev or null; diff --git a/templates/darwin-host/flake.nix b/templates/darwin-host/flake.nix index 2da6338..6908d84 100644 --- a/templates/darwin-host/flake.nix +++ b/templates/darwin-host/flake.nix @@ -7,7 +7,6 @@ darwinConfigurations.default = dotfiles.lib.mkDarwin { source = self; system = "aarch64-darwin"; - hostName = "example-host"; darwinStateVersion = 6; homeStateVersion = "26.05"; -- 2.51.2