Add vaultwarden.
This commit is contained in:
parent
abeef2cb58
commit
cf9c488824
8 changed files with 29 additions and 10 deletions
|
|
@ -4,15 +4,18 @@
|
|||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
|
||||
foehammer = {
|
||||
users.admin = {
|
||||
enable = true;
|
||||
hashedPasswordFile = config.sops.secrets.admin-password.path;
|
||||
};
|
||||
|
||||
services.vaultwarden = {
|
||||
enable = true;
|
||||
domain = "https://passwords.foehammer.me";
|
||||
signups = false;
|
||||
envPath = config.sops.secrets.vaultwarden-env.path;
|
||||
};
|
||||
};
|
||||
|
||||
services.tailscale = {
|
||||
|
|
|
|||
13
machines/lebesgue/config/routing.nix
Normal file
13
machines/lebesgue/config/routing.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{config, ...}: {
|
||||
foehammer.caddy.enable = true;
|
||||
|
||||
services.caddy = {
|
||||
virtualHosts = {
|
||||
"passwords.foehammer.me" = {
|
||||
extraConfig = ''
|
||||
reverse_proxy :${toString config.foehammer.services.vaultwarden.port}
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -5,6 +5,7 @@
|
|||
secrets = {
|
||||
admin-password.neededForUsers = true;
|
||||
tskey = {};
|
||||
vaultwarden-env = {};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@
|
|||
"/var/log"
|
||||
"/var/lib/nixos"
|
||||
"/var/lib/docker"
|
||||
"/var/lib/caddy/.local/share/caddy"
|
||||
]
|
||||
++ config.foehammer.backups.paths;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue