aboutsummaryrefslogtreecommitdiffstats
path: root/system/services/rust-motd
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--system/services/rust-motd/default.nix (renamed from services/services/rust-motd.nix)28
1 files changed, 20 insertions, 8 deletions
diff --git a/services/services/rust-motd.nix b/system/services/rust-motd/default.nix
index 21bc1cd..1a41b32 100644
--- a/services/services/rust-motd.nix
+++ b/system/services/rust-motd/default.nix
@@ -3,6 +3,15 @@
pkgs,
...
}: {
+ systemd.services.rust-motd = {
+ path = builtins.attrValues {
+ inherit
+ (pkgs)
+ bash
+ fail2ban # Needed for rust-motd fail2ban integration
+ ;
+ };
+ };
programs.rust-motd = {
enable = true;
enableMotdInSSHD = true;
@@ -45,17 +54,20 @@
# [user_service_status]
# gpg-agent = "gpg-agent"
- #s_s_l_certs = {
- # sort_method = "manual"
- #
- # certs = {
- # CertName1 = "/path/to/cert1.pem"
- # CertName2 = "/path/to/cert2.pem"
- # }
- #};
+ s_s_l_certs = {
+ sort_method = "manual";
+
+ certs = {
+ "server1.vhack.eu" = "/var/lib/acme/server1.vhack.eu/cert.pem";
+ "vhack.eu" = "/var/lib/acme/vhack.eu/cert.pem";
+ };
+ };
filesystems = {
root = "/";
+ persistent = "/srv";
+ store = "/nix";
+ boot = "/boot";
};
memory = {