add configuration revision to login
Signed-off-by: Xe <me@christine.website>
This commit is contained in:
parent
edc51ac9d9
commit
f21903d83d
|
@ -18,7 +18,10 @@
|
||||||
modules = [
|
modules = [
|
||||||
agenix.nixosModules.age
|
agenix.nixosModules.age
|
||||||
home-manager.nixosModules.home-manager
|
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;
|
] ++ extraModules;
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
|
|
Loading…
Reference in New Issue