mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git
synced 2025-03-14 18:03:50 +00:00
system.configurationRevision = self.rev or "@${self.lastModifiedDate}"
This commit is contained in:
parent
f33fb9e9bf
commit
26b3071929
1 changed files with 4 additions and 2 deletions
|
@ -36,8 +36,10 @@
|
|||
top-level-flake.outPath;
|
||||
# for running "nix search nixpkgs", etc
|
||||
nix.registry.nixpkgs.flake = nixpkgs;
|
||||
# embed commit sha1; FIXME dirty builds must be intentionally forbidden
|
||||
system.configurationRevision = self.rev or ("#" + self.lastModifiedDate + "-" + toString self.lastModified);
|
||||
# embed commit sha1 for `nixos-version --configuration-revision`
|
||||
system.configurationRevision = self.rev
|
||||
or "@${self.lastModifiedDate}"; # for development
|
||||
# TODO assertion to forbid dirty builds caused by top-level-flake
|
||||
}
|
||||
]
|
||||
++
|
||||
|
|
Loading…
Add table
Reference in a new issue