53 current 2025-10-07 21:21:52 25.05.20251001.5b5be50 6.12.49 *

This commit is contained in:
2025-10-07 21:35:30 -05:00
parent b98705314d
commit 050e8294d3
5 changed files with 22 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
# flake for blakes nixos config
# define new devices in outputs
# generation: 52 current 2025-10-07 21:09:55 25.05.20251001.5b5be50 6.12.49 *
# generation: 53 current 2025-10-07 21:21:52 25.05.20251001.5b5be50 6.12.49 *
{
description = "blakes nix config";
inputs = {

View File

@@ -31,6 +31,7 @@
services = {
jellyfin.enable = true;
vaultwarden.enable = true;
vaultwarden.port = 7701;
sonarr.enable = true;
sonarr.port = 7105;
prowlarr.enable = true;

View File

@@ -13,7 +13,7 @@ in
# set port options
port = lib.mkOption {
type = lib.types.int;
default = cfg.default_port;
default = default_port;
description = "set port for prowlarr (default: ${toString default_port}";
};

View File

@@ -12,7 +12,7 @@ in
port = lib.mkOption {
type = lib.types.int;
default = 8989;
default = default_port;
description = "set port for sonarr (${toString default_port})";
};

View File

@@ -3,8 +3,9 @@
let
cfg = config.modules.services.vaultwarden;
ids = 2771;
default_port = 7701;
default_port = 8000;
data_dir = "/var/lib/vaultwarden";
domain = https://pass.blakedheld.xyz
in
{
options.modules.services.vaultwarden = {
@@ -43,6 +44,22 @@ in
# enable the vaultwarden service
services.vaultwarden = {
enable = true;
config = {
DOMAIN=${domain};
ROCKET_ADDRESS = "0.0.0.0";
ROCKET_PORT = ${port};
SIGNUPS_ALLOWED=true;
# EXPERIMENTAL_CLIENT_FEATURE_FLAGS=fido2-vault-credentials
# The following flags are available:
# - "autofill-overlay": Add an overlay menu to form fields for quick access to credentials.
# - "autofill-v2": Use the new autofill implementation.
# - "browser-fileless-import": Directly import credentials from other providers without a file.
# - "extension-refresh": Temporarily enable the new extension design until general availability (should be used with the beta Chrome extension)
# - "fido2-vault-credentials": Enable the use of FIDO2 security keys as second factor.
# - "inline-menu-positioning-improvements": Enable the use of inline menu password generator and identity suggestions in the browser extension.
# - "ssh-key-vault-item": Enable the creation and use of SSH key vault items. (Needs clients >=2024.12.0)
# - "ssh-agent": Enable SSH agent support on Desktop. (Needs desktop >=2024.12.0)
};
};
# override umask to make permissions work out