diff options
| author | Franck Cuny <franck@fcuny.net> | 2025-08-12 10:02:16 -0700 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2025-08-12 10:02:16 -0700 |
| commit | 9d60cbf230330d062799bb43b18c1f9fb374ec2c (patch) | |
| tree | 8dce4c7e256413bcaf94230286602d268da7a543 /profiles/core/motd.nix | |
| parent | create profiles for networkd and nix's GC (diff) | |
| download | infra-9d60cbf230330d062799bb43b18c1f9fb374ec2c.tar.gz | |
add profile for motd
Diffstat (limited to 'profiles/core/motd.nix')
| -rw-r--r-- | profiles/core/motd.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/profiles/core/motd.nix b/profiles/core/motd.nix new file mode 100644 index 0000000..01575e1 --- /dev/null +++ b/profiles/core/motd.nix @@ -0,0 +1,9 @@ +{ self, config, ... }: +{ + users.motdFile = "/etc/motd"; + environment.etc.motd.text = '' + Machine ${config.networking.hostName} + NixOS ${config.system.nixos.release} + @ ${self.shortRev or self.dirtyShortRev} + ''; +} |
