fixed issues related to configurationRevision

This commit is contained in:
kity 2024-10-30 14:36:09 +01:00
parent d815643dfc
commit 115595c8bf
2 changed files with 7 additions and 6 deletions

View file

@ -123,7 +123,10 @@
}; };
darwinConfigurations."iMac-de-Eddie" = nix-darwin.lib.darwinSystem { 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. # Expose the package set, including overlays, for convenience.

View file

@ -1,4 +1,5 @@
{ pkgs, ... }: { { pkgs, ... }:
{
# List packages installed in system profile. To search by name, run: # List packages installed in system profile. To search by name, run:
# $ nix-env -qaP | grep wget # $ nix-env -qaP | grep wget
environment.systemPackages = environment.systemPackages =
@ -20,13 +21,10 @@
programs.zsh.enable = true; # default shell on catalina programs.zsh.enable = true; # default shell on catalina
# programs.fish.enable = true; # 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. # Used for backwards compatibility, please read the changelog before changing.
# $ darwin-rebuild changelog # $ darwin-rebuild changelog
system.stateVersion = 5; system.stateVersion = 5;
# The platform the configuration will be used on. # The platform the configuration will be used on.
nixpkgs.hostPlatform = "x86_64-darwin"; nixpkgs.hostPlatform = "x86_64-darwin";
} }