diff --git a/hosts/vulpecula-vps/configuration.nix b/hosts/vulpecula-vps/configuration.nix index 245a16c..102b714 100644 --- a/hosts/vulpecula-vps/configuration.nix +++ b/hosts/vulpecula-vps/configuration.nix @@ -16,6 +16,7 @@ in { ./wallabag.nix ./nextcloud.nix ./vaultwarden.nix + ./mautrix.nix # ./thymis.nix ]; @@ -80,9 +81,13 @@ in { defaults.email = "tasiaiso@proton.me"; }; + nixpkgs.config.permittedInsecurePackages = [ + "olm-3.2.16" + ]; + boot.tmp.cleanOnBoot = true; zramSwap.enable = true; - networking.domain = ""; + networking.domain = "vulpecula.zone"; # users.users.root.openssh.authorizedKeys.keys = [''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILLyDLtqUhEQwIsPx0XgQ9OJb2+XxL+2ra4goNJEgwf0 tasia@cave'' ]; system.stateVersion = "24.05"; } diff --git a/hosts/vulpecula-vps/mautrix.nix b/hosts/vulpecula-vps/mautrix.nix new file mode 100644 index 0000000..5e7fb6a --- /dev/null +++ b/hosts/vulpecula-vps/mautrix.nix @@ -0,0 +1,49 @@ +{...}: { + services.mautrix-whatsapp.enable = true; + # services.mautrix-whatsapp.environmentFile = ""; + # services.mautrix-whatsapp.settings = ; +} + +# { +# appservice = { +# as_token = ""; +# bot = { +# displayname = "WhatsApp Bridge Bot"; +# username = "whatsappbot"; +# }; +# database = { +# type = "sqlite3"; +# uri = "/var/lib/mautrix-whatsapp/mautrix-whatsapp.db"; +# }; +# hostname = "[::]"; +# hs_token = ""; +# id = "whatsapp"; +# port = 29318; +# }; +# bridge = { +# command_prefix = "!wa"; +# displayname_template = "{{if .BusinessName}}{{.BusinessName}}{{else if .PushName}}{{.PushName}}{{else}}{{.JID}}{{end}} (WA)"; +# double_puppet_server_map = { }; +# login_shared_secret_map = { }; +# permissions = { +# "*" = "relay"; +# }; +# relay = { +# enabled = true; +# }; +# username_template = "whatsapp_{{.}}"; +# }; +# homeserver = { +# address = "http://localhost:8448"; +# }; +# logging = { +# min_level = "info"; +# writers = [ +# { +# format = "pretty-colored"; +# time_format = " "; +# type = "stdout"; +# } +# ]; +# }; +# } \ No newline at end of file