aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hosts/ganymede/collin-copyparty-password.age1
-rw-r--r--hosts/ganymede/config.nix5
-rw-r--r--modules/services/nixos/copyparty.nix3
-rw-r--r--secrets.nix2
4 files changed, 9 insertions, 2 deletions
diff --git a/hosts/ganymede/collin-copyparty-password.age b/hosts/ganymede/collin-copyparty-password.age
new file mode 100644
index 0000000..b7cd2ec
--- /dev/null
+++ b/hosts/ganymede/collin-copyparty-password.age
@@ -0,0 +1 @@
+u!!HX!DrTP4vCt
diff --git a/hosts/ganymede/config.nix b/hosts/ganymede/config.nix
index a9e3279..d821c76 100644
--- a/hosts/ganymede/config.nix
+++ b/hosts/ganymede/config.nix
@@ -9,6 +9,11 @@
};
"caddy-env".file = ./caddy-env.age;
+
+ "collin-copyparty-password" = {
+ file = ./collin-copyparty-password.age;
+ owner = "copyparty";
+ };
};
terminal = {
diff --git a/modules/services/nixos/copyparty.nix b/modules/services/nixos/copyparty.nix
index 400338f..6e105fc 100644
--- a/modules/services/nixos/copyparty.nix
+++ b/modules/services/nixos/copyparty.nix
@@ -1,7 +1,6 @@
{
config,
lib,
- pkgs,
inputs,
...
}: let
@@ -26,7 +25,7 @@ in {
accounts = {
collin = {
- passwordFile = toString <| pkgs.writeText "default-pw" "admin"; # not the actual password anymore
+ passwordFile = config.collinux.sercrets."collin-copyparty-password".path;
};
};
volumes = {
diff --git a/secrets.nix b/secrets.nix
index d766bc7..7bcc9b9 100644
--- a/secrets.nix
+++ b/secrets.nix
@@ -5,4 +5,6 @@ in {
"tsnsrv-authkey.age".publicKeys = [ganymede.host_pubkey mercury.host_pubkey];
"williams-psk.age".publicKeys = [ganymede.host_pubkey];
"github-ssh-key.age".publicKeys = [mercury.host_pubkey jupiter.host_pubkey];
+
+ "collin-copyparty-password.age".publicKeys = [mercury.host_pubkey ganymede.host_pubkey];
}