feat : Add modular service to hostname

This commit is contained in:
Wateir 2025-12-21 20:37:17 +01:00
parent 9453773af6
commit 1637885001
11 changed files with 112 additions and 66 deletions

View file

@ -1,16 +1,12 @@
{ config, pkgs, lib, ... }:
{ config, lib, ... }:
lib.mkIf (config.networking.hostName == "ThinkCentre-Server-004"){
lib.mkIf config.sVAULTWARDEN.enable {
services.vaultwarden = {
enable = true;
backupDir = "/var/local/vaultwarden/backup";
environmentFile = "/etc/vaultwarden.env";
config = {
ROCKET_PORT = config.sVAULTWARDEN.internalPort;
ROCKET_ADDRESS = "127.0.0.1";
SIGNUPS_ALLOWED = true;
ROCKET_PORT = 8222;
};
};
}