aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2025-12-14 13:20:44 -0800
committerFranck Cuny <franck@fcuny.net>2025-12-14 13:20:44 -0800
commit7e7e42b4d58e90466c9f8926c3804aa23be47877 (patch)
tree5e00f916b895a91a89d1ec3f048e196da6510e70 /flake.nix
parentsimplify path structures for machines (diff)
downloadinfra-7e7e42b4d58e90466c9f8926c3804aa23be47877.tar.gz
display the git SHA for the nixos version in MOTD
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/flake.nix b/flake.nix
index ec2f077..f6a9b91 100644
--- a/flake.nix
+++ b/flake.nix
@@ -155,7 +155,7 @@
};
modules = [
{
- system.configurationRevision = nixpkgs.lib.mkIf (self ? rev) self.rev;
+ system.configurationRevision = self.rev or self.dirtyRev or null;
system.nixos.versionSuffix = nixpkgs.lib.mkForce "git.${builtins.substring 0 11 nixpkgs.rev}";
nixpkgs.pkgs = pkgs;
environment.systemPackages = [ pkgs.git ];