summary refs log tree commit diff
path: root/nixos/tests/nextcloud
diff options
context:
space:
mode:
authorMaximilian Bosch <maximilian@mbosch.me>2021-10-08 18:30:57 +0200
committerMaximilian Bosch <maximilian@mbosch.me>2021-10-08 18:30:57 +0200
commitf57bed88326b7b7e3ff6dc97ddeaef5b02f8e510 (patch)
tree666f90e20a1f6c9eb0238f2f843305abf8f7a1f7 /nixos/tests/nextcloud
parent9f37d6aee028679b8a94be59d74984e708acaa85 (diff)
downloadnixpkgs-f57bed88326b7b7e3ff6dc97ddeaef5b02f8e510.tar
nixpkgs-f57bed88326b7b7e3ff6dc97ddeaef5b02f8e510.tar.gz
nixpkgs-f57bed88326b7b7e3ff6dc97ddeaef5b02f8e510.tar.bz2
nixpkgs-f57bed88326b7b7e3ff6dc97ddeaef5b02f8e510.tar.lz
nixpkgs-f57bed88326b7b7e3ff6dc97ddeaef5b02f8e510.tar.xz
nixpkgs-f57bed88326b7b7e3ff6dc97ddeaef5b02f8e510.tar.zst
nixpkgs-f57bed88326b7b7e3ff6dc97ddeaef5b02f8e510.zip
nixos/nextcloud: drop adminpass/dbpass options entirely
Diffstat (limited to 'nixos/tests/nextcloud')
-rw-r--r--nixos/tests/nextcloud/basic.nix2
-rw-r--r--nixos/tests/nextcloud/with-mysql-and-memcached.nix4
2 files changed, 3 insertions, 3 deletions
diff --git a/nixos/tests/nextcloud/basic.nix b/nixos/tests/nextcloud/basic.nix
index 40ee9d5184c..1a7b25d5a49 100644
--- a/nixos/tests/nextcloud/basic.nix
+++ b/nixos/tests/nextcloud/basic.nix
@@ -38,7 +38,7 @@ in {
         hostName = "nextcloud";
         config = {
           # Don't inherit adminuser since "root" is supposed to be the default
-          inherit adminpass;
+          adminpassFile = "${pkgs.writeText "adminpass" adminpass}"; # Don't try this at home!
           dbtableprefix = "nixos_";
         };
         package = pkgs.${"nextcloud" + (toString nextcloudVersion)};
diff --git a/nixos/tests/nextcloud/with-mysql-and-memcached.nix b/nixos/tests/nextcloud/with-mysql-and-memcached.nix
index c0df773eaaa..80cb63df5db 100644
--- a/nixos/tests/nextcloud/with-mysql-and-memcached.nix
+++ b/nixos/tests/nextcloud/with-mysql-and-memcached.nix
@@ -32,9 +32,9 @@ in {
           dbuser = "nextcloud";
           dbhost = "127.0.0.1";
           dbport = 3306;
-          dbpass = "hunter2";
+          dbpassFile = "${pkgs.writeText "dbpass" "hunter2" }";
           # Don't inherit adminuser since "root" is supposed to be the default
-          inherit adminpass;
+          adminpassFile = "${pkgs.writeText "adminpass" adminpass}"; # Don't try this at home!
         };
       };