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";