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: mkSystem = extraModules:
nixpkgs.lib.nixosSystem { nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
modules = modules = [
[ agenix.nixosModules.age home-manager.nixosModules.home-manager ] agenix.nixosModules.age
++ extraModules; home-manager.nixosModules.home-manager
({ ... }: { system.configurationRevision = self.sourceInfo.rev; })
] ++ extraModules;
}; };
in { in {
devShell.x86_64-linux = pkgs.mkShell { devShell.x86_64-linux = pkgs.mkShell {