56 lines
1.5 KiB
Nix
56 lines
1.5 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
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.authelia = {
|
|
enable = true;
|
|
domain = "auth.foehammer.me";
|
|
jwtSecretFile = config.sops.secrets.authelia-jwtsecret.path;
|
|
|
|
userDbFile = config.sops.secrets.authelia-users.path;
|
|
# oidcIssuerPrivateKeyFile = config.sops.secrets.authelia-oidc-privkey.path;
|
|
# oidcHmacSecretFile = config.sops.secrets.authelia-oidc-hmac.path;
|
|
sessionSecretFile = config.sops.secrets.authelia-session-secret.path;
|
|
storageEncryptionKeyFile = config.sops.secrets.authelia-storage-encryption.path;
|
|
};
|
|
|
|
backups.restic = {
|
|
enable = true;
|
|
|
|
repositoryFile = config.sops.secrets.restic-repository.path;
|
|
environmentFile = config.sops.secrets.restic-env.path;
|
|
passwordFile = config.sops.secrets.restic-password.path;
|
|
|
|
paths = ["/var/lib/vaultwarden" "/var/lib/authelia"];
|
|
};
|
|
|
|
tailscale = {
|
|
enable = true;
|
|
authKeyFile = config.sops.secrets.tskey.path;
|
|
};
|
|
};
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
|
|
networking.firewall.allowedTCPPorts = [22];
|
|
|
|
system.stateVersion = "24.11";
|
|
}
|