add configuration revision to login

Signed-off-by: Xe <me@christine.website>
This commit is contained in:
Cadey Ratio 2021-12-21 19:02:15 -05:00
parent edc51ac9d9
commit f21903d83d
1 changed files with 4 additions and 1 deletions

View File

@ -18,7 +18,10 @@
modules = [
agenix.nixosModules.age
home-manager.nixosModules.home-manager
({ ... }: { system.configurationRevision = self.sourceInfo.rev; })
({ config, ... }: {
system.configurationRevision = self.sourceInfo.rev;
services.getty.greetingLine = ''<<< Welcome to NixOS ${config.system.nixos.label} @ ${self.sourceInfo.rev} - \l >>>'';
})
] ++ extraModules;
};
in {