From 38150848d5f010aa48694e6469a4856366dd0245 Mon Sep 17 00:00:00 2001 From: Erwin Boskma Date: Tue, 5 Nov 2024 17:41:26 +0100 Subject: [PATCH] read: Add rust-motd --- machines/read/configuration.nix | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/machines/read/configuration.nix b/machines/read/configuration.nix index 92f4c80..9501e46 100644 --- a/machines/read/configuration.nix +++ b/machines/read/configuration.nix @@ -112,6 +112,27 @@ sudo.enable = false; }; + programs.rust-motd = { + enable = true; + settings = { + banner = { + command = "${pkgs.figlet}/bin/figlet -f slant ${config.networking.hostName}"; + }; + weather = { + loc = "De Westereen, Netherlands"; + }; + uptime = { + prefix = "up: "; + }; + filesystems = { + root = "/"; + }; + memory = { + swap_pos = "none"; + }; + }; + }; + sops.defaultSopsFile = ./secrets.yaml; sops.secrets = { caddy-env = { };