From b92870c24046ee1576c79b286aad8a6b8e9768bc Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 8 May 2025 23:22:29 +0200 Subject: [PATCH] treewide: drop nixops docs and examples This is not a deployment system we recommend using anymore in 2025. Closes: #320 --- docs/howto-develop.rst | 26 -------------------------- nixops/single-server.nix | 31 ------------------------------- nixops/vbox.nix | 9 --------- 3 files changed, 66 deletions(-) delete mode 100644 nixops/single-server.nix delete mode 100644 nixops/vbox.nix diff --git a/docs/howto-develop.rst b/docs/howto-develop.rst index ded90b9..acdc7bd 100644 --- a/docs/howto-develop.rst +++ b/docs/howto-develop.rst @@ -44,29 +44,3 @@ To build the documentation, you need to enable `Nix Flakes $ nix build .#documentation $ xdg-open result/index.html - -Nixops ------- - -You can test the setup via ``nixops``. After installation, do - -:: - - $ nixops create nixops/single-server.nix nixops/vbox.nix -d mail - $ nixops deploy -d mail - $ nixops info -d mail - -You can then test the server via e.g. \ ``telnet``. To log into it, use - -:: - - $ nixops ssh -d mail mailserver - -Imap ----- - -To test imap manually use - -:: - - $ openssl s_client -host mail.example.com -port 143 -starttls imap diff --git a/nixops/single-server.nix b/nixops/single-server.nix deleted file mode 100644 index c002da7..0000000 --- a/nixops/single-server.nix +++ /dev/null @@ -1,31 +0,0 @@ -{ - network.description = "mail server"; - - mailserver = - { config, pkgs, ... }: - { - imports = [ - ../default.nix - ]; - - mailserver = { - enable = true; - fqdn = "mail.example.com"; - domains = [ "example.com" "example2.com" ]; - loginAccounts = { - "user1@example.com" = { - hashedPassword = "$6$/z4n8AQl6K$kiOkBTWlZfBd7PvF5GsJ8PmPgdZsFGN1jPGZufxxr60PoR0oUsrvzm2oQiflyz5ir9fFJ.d/zKm/NgLXNUsNX/"; - }; - }; - extraVirtualAliases = { - "info@example.com" = "user1@example.com"; - "postmaster@example.com" = "user1@example.com"; - "abuse@example.com" = "user1@example.com"; - "user1@example2.com" = "user1@example.com"; - "info@example2.com" = "user1@example.com"; - "postmaster@example2.com" = "user1@example.com"; - "abuse@example2.com" = "user1@example.com"; - }; - }; - }; -} diff --git a/nixops/vbox.nix b/nixops/vbox.nix deleted file mode 100644 index 2af7518..0000000 --- a/nixops/vbox.nix +++ /dev/null @@ -1,9 +0,0 @@ -{ - mailserver = - { config, pkgs, ... }: - { deployment.targetEnv = "virtualbox"; - deployment.virtualbox.memorySize = 1024; # megabytes - deployment.virtualbox.vcpu = 2; # number of cpus - deployment.virtualbox.headless = true; - }; -}