diff --git a/flake.nix b/flake.nix index 57b2598..b9be8fd 100644 --- a/flake.nix +++ b/flake.nix @@ -123,7 +123,10 @@ }; darwinConfigurations."iMac-de-Eddie" = nix-darwin.lib.darwinSystem { - modules = [ ./hosts/dadarwin/configuration.nix ]; + modules = [ ./hosts/dadarwin/configuration.nix + + {system.configurationRevision = self.rev or self.dirtyRev or null;} + ]; }; # Expose the package set, including overlays, for convenience. diff --git a/hosts/dadarwin/configuration.nix b/hosts/dadarwin/configuration.nix index fb4ea18..aefb368 100644 --- a/hosts/dadarwin/configuration.nix +++ b/hosts/dadarwin/configuration.nix @@ -1,4 +1,5 @@ -{ pkgs, ... }: { +{ pkgs, ... }: +{ # List packages installed in system profile. To search by name, run: # $ nix-env -qaP | grep wget environment.systemPackages = @@ -20,13 +21,10 @@ programs.zsh.enable = true; # default shell on catalina # programs.fish.enable = true; - # Set Git commit hash for darwin-version. - system.configurationRevision = self.rev or self.dirtyRev or null; - # Used for backwards compatibility, please read the changelog before changing. # $ darwin-rebuild changelog system.stateVersion = 5; # The platform the configuration will be used on. nixpkgs.hostPlatform = "x86_64-darwin"; - } +}