diff options
Diffstat (limited to 'profiles')
| -rw-r--r-- | profiles/core/motd.nix | 9 | ||||
| -rw-r--r-- | profiles/server.nix | 2 |
2 files changed, 9 insertions, 2 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} + ''; +} diff --git a/profiles/server.nix b/profiles/server.nix index 78eaf7d..9f9e01c 100644 --- a/profiles/server.nix +++ b/profiles/server.nix @@ -1,13 +1,11 @@ { pkgs, - self, ... }: { imports = [ ./default.nix - "${self}/modules/motd.nix" ]; #Virtualization settings |
