From 0ee94132d470abaa6fd79de846d4b4a5f473934a Mon Sep 17 00:00:00 2001 From: sajenim Date: Fri, 9 Jun 2023 23:16:42 +0800 Subject: [PATCH] remove bitwarden container --- .gitignore | 1 - .../lavender/containers/bitwarden/default.nix | 16 ----- .../bitwarden/template-settings.env | 70 ------------------- nixos/lavender/containers/default.nix | 14 ---- 4 files changed, 101 deletions(-) delete mode 100644 nixos/lavender/containers/bitwarden/default.nix delete mode 100644 nixos/lavender/containers/bitwarden/template-settings.env diff --git a/.gitignore b/.gitignore index 5a967cc..a991725 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,2 @@ result **/dist-newstyle -**/settings.env diff --git a/nixos/lavender/containers/bitwarden/default.nix b/nixos/lavender/containers/bitwarden/default.nix deleted file mode 100644 index ece02d2..0000000 --- a/nixos/lavender/containers/bitwarden/default.nix +++ /dev/null @@ -1,16 +0,0 @@ -{ ... }: - -{ - # Bitwarden - virtualisation.oci-containers.containers."bitwarden" = { - autoStart = true; - image = "bitwarden/self-host:beta"; - volumes = [ - "/srv/containers/bitwarden:/etc/bitwarden" - ]; - ports = [ "8484:8080" ]; - environmentFiles = [ - /etc/nixos/nixos/lavender/containers/bitwarden/settings.env - ]; - }; -} diff --git a/nixos/lavender/containers/bitwarden/template-settings.env b/nixos/lavender/containers/bitwarden/template-settings.env deleted file mode 100644 index 8dca8cb..0000000 --- a/nixos/lavender/containers/bitwarden/template-settings.env +++ /dev/null @@ -1,70 +0,0 @@ -##################### -# Required Settings # -##################### - -# Server hostname -BW_DOMAIN=bitwarden.yourdomain.com - -# Database -# Available providers are sqlserver, postgresql, mysql/mariadb, or sqlite -BW_DB_PROVIDER=mysql -BW_DB_SERVER=db -BW_DB_DATABASE=bitwarden_vault -BW_DB_USERNAME=bitwarden -BW_DB_PASSWORD=super_strong_password - -# Installation information -# Get your ID and key from https://bitwarden.com/host/ -BW_INSTALLATION_ID=00000000-0000-0000-0000-000000000000 -BW_INSTALLATION_KEY=xxxxxxxxxxxx - -##################### -# Optional Settings # -##################### -# Learn more here: https://bitwarden.com/help/environment-variables/ - -# Container user ID/group ID -#PUID=1000 -#PGID=1000 - -# Webserver ports -#BW_PORT_HTTP=8080 -#BW_PORT_HTTPS=8443 - -# SSL -#BW_ENABLE_SSL=true -#BW_ENABLE_SSL_CA=true -#BW_SSL_CERT=ssl.crt -#BW_SSL_KEY=ssl.key -#BW_SSL_CA_CERT=ca.crt - -# Services -# Some services, namely for enterprise use cases, are disabled by default. Defaults shown below. -#BW_ENABLE_ADMIN=true -#BW_ENABLE_API=true -#BW_ENABLE_EVENTS=false -#BW_ENABLE_ICONS=true -#BW_ENABLE_IDENTITY=true -#BW_ENABLE_NOTIFICATIONS=true -#BW_ENABLE_SCIM=false -#BW_ENABLE_SSO=false - -#BW_ICONS_PROXY_TO_CLOUD=false - -# Mail -#globalSettings__mail__replyToEmail=noreply@$BW_DOMAIN -#globalSettings__mail__smtp__host=smtphost.example.com -#globalSettings__mail__smtp__port=587 -#globalSettings__mail__smtp__ssl=false -#globalSettings__mail__smtp__username=smtpusername -#globalSettings__mail__smtp__password=smtppassword - -# Yubikey -#globalSettings__yubico__clientId=REPLACE -#globalSettings__yubico__key=REPLACE - -# Other -#globalSettings__disableUserRegistration=false -#globalSettings__hibpApiKey=REPLACE -#adminSettings__admins=admin1@email.com,admin2@email.com - diff --git a/nixos/lavender/containers/default.nix b/nixos/lavender/containers/default.nix index 59152ea..70895ef 100644 --- a/nixos/lavender/containers/default.nix +++ b/nixos/lavender/containers/default.nix @@ -2,30 +2,16 @@ { imports = [ - # Dashboard ./homepage - - # Website ./nginx - - # Dns blackhole ./pihole - - # Multimedia ./plex ./sonarr ./radarr ./prowlarr ./recyclarr - - # Documents & Files ./qbittorrent - ./bitwarden - - # Game servers ./minecraft - - # Reverse proxy ./traefik ]; }