feat : Add modular service to hostname
This commit is contained in:
parent
9453773af6
commit
1637885001
11 changed files with 112 additions and 66 deletions
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue