diff options
author | tdback <tyler@tdback.net> | 2024-12-26 20:21:47 -0500 |
---|---|---|
committer | tdback <tyler@tdback.net> | 2024-12-26 20:21:47 -0500 |
commit | 397aee1840f8a55e53595ca0f55e1df4ad245bf5 (patch) | |
tree | a859de6aca2983b6dbedd84a7bd745ca08224504 /hosts | |
parent | 274a1e84f12c39e2f0a67b1fc85511381c8b798d (diff) |
modularize motd script
Diffstat (limited to 'hosts')
-rw-r--r-- | hosts/eden/default.nix | 19 | ||||
-rw-r--r-- | hosts/hive/default.nix | 8 | ||||
-rw-r--r-- | hosts/oasis/default.nix | 15 | ||||
-rw-r--r-- | hosts/raindog/default.nix | 8 |
4 files changed, 22 insertions, 28 deletions
diff --git a/hosts/eden/default.nix b/hosts/eden/default.nix index c7604da..bb39dbe 100644 --- a/hosts/eden/default.nix +++ b/hosts/eden/default.nix @@ -38,7 +38,16 @@ zfs.extraPools = [ "tank" ]; }; - motd = { + services.zquota = { + enable = true; + quotas = { + "tank/backups" = 512; + "tank/media" = 1536; + }; + }; + + programs.motd = { + enable = true; networkInterfaces = lib.lists.singleton "eno1"; servicesToCheck = [ "caddy" @@ -49,12 +58,4 @@ "zfs-zed" ]; }; - - services.zquota = { - enable = true; - quotas = { - "tank/backups" = 512; - "tank/media" = 1536; - }; - }; } diff --git a/hosts/hive/default.nix b/hosts/hive/default.nix index c164b92..61b8193 100644 --- a/hosts/hive/default.nix +++ b/hosts/hive/default.nix @@ -34,11 +34,9 @@ efi.canTouchEfiVariables = true; }; - motd = { + programs.motd = { + enable = true; networkInterfaces = lib.lists.singleton "eno1"; - servicesToCheck = [ - "caddy" - "gotosocial" - ]; + servicesToCheck = [ "caddy" "gotosocial" ]; }; } diff --git a/hosts/oasis/default.nix b/hosts/oasis/default.nix index 5b849fb..5b8ebb3 100644 --- a/hosts/oasis/default.nix +++ b/hosts/oasis/default.nix @@ -38,19 +38,16 @@ zfs.extraPools = [ "tank" ]; }; - motd = { - networkInterfaces = lib.lists.singleton "enp59s0"; - servicesToCheck = [ - "caddy" - "sftpgo" - "zfs-zed" - ]; - }; - services.zquota = { enable = true; quotas = { "tank/sftpgo" = 512; }; }; services.sftpgo.dataDir = "/tank/sftpgo"; + + programs.motd = { + enable = true; + networkInterfaces = lib.lists.singleton "enp59s0"; + servicesToCheck = [ "caddy" "sftpgo" "zfs-zed" ]; + }; } diff --git a/hosts/raindog/default.nix b/hosts/raindog/default.nix index 0eb2d30..ac66068 100644 --- a/hosts/raindog/default.nix +++ b/hosts/raindog/default.nix @@ -34,11 +34,9 @@ efi.canTouchEfiVariables = true; }; - motd = { + programs.motd = { + enable = true; networkInterfaces = lib.lists.singleton "eno1"; - servicesToCheck = [ - "blocky" - "searx" - ]; + servicesToCheck = [ "blocky" "searx" ]; }; } |