add configuration revision

Signed-off-by: Xe <me@christine.website>
This commit is contained in:
Cadey Ratio 2021-12-21 18:59:45 -05:00
parent 5ce78d85f0
commit edc51ac9d9
1 changed files with 5 additions and 3 deletions

View File

@ -15,9 +15,11 @@
mkSystem = extraModules:
nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules =
[ agenix.nixosModules.age home-manager.nixosModules.home-manager ]
++ extraModules;
modules = [
agenix.nixosModules.age
home-manager.nixosModules.home-manager
({ ... }: { system.configurationRevision = self.sourceInfo.rev; })
] ++ extraModules;
};
in {
devShell.x86_64-linux = pkgs.mkShell {