try harmonia instead of attic
This commit is contained in:
parent
d893b06a82
commit
f72e9c511d
12 changed files with 67 additions and 155 deletions
|
@ -63,5 +63,5 @@ element.cything.io {
|
|||
|
||||
cache.cything.io {
|
||||
import common
|
||||
reverse_proxy localhost:8090
|
||||
reverse_proxy localhost:5000
|
||||
}
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
./conduwuit.nix
|
||||
./immich.nix
|
||||
./element.nix
|
||||
./attic.nix
|
||||
./harmonia.nix
|
||||
];
|
||||
|
||||
sops.age.keyFile = "/root/.config/sops/age/keys.txt";
|
||||
|
@ -82,8 +82,8 @@
|
|||
"rsyncnet/id_ed25519" = {
|
||||
sopsFile = ../../secrets/de3911/chunk.yaml;
|
||||
};
|
||||
"attic/env" = {
|
||||
sopsFile = ../../secrets/services/attic.yaml;
|
||||
"harmonia/key" = {
|
||||
sopsFile = ../../secrets/services/harmonia.yaml;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
9
hosts/chunk/harmonia.nix
Normal file
9
hosts/chunk/harmonia.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{ config, ... }: {
|
||||
services.harmonia = {
|
||||
enable = true;
|
||||
signKeyPaths = [ config.sops.secrets."harmonia/key".path ];
|
||||
settings = {
|
||||
real_nix_store = "/mnt/harmonia";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -10,13 +10,6 @@
|
|||
enableTCPIP = true;
|
||||
ensureDatabases = [
|
||||
"hedgedoc"
|
||||
"atticd"
|
||||
];
|
||||
ensureUsers = [
|
||||
{
|
||||
name = "atticd";
|
||||
ensureDBOwnership = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
services.postgresqlBackup = {
|
||||
|
|
|
@ -22,20 +22,20 @@
|
|||
};
|
||||
};
|
||||
|
||||
systemd.services.attic-mount = {
|
||||
systemd.services.harmonia-mount = {
|
||||
enable = true;
|
||||
description = "Mount the attic data remote";
|
||||
description = "Mount the harmonia data remote";
|
||||
requires = [ "network-online.target" ];
|
||||
after = [ "network-online.target" ];
|
||||
requiredBy = [ "atticd.service" ];
|
||||
before = [ "atticd.service" ];
|
||||
requiredBy = [ "harmonia.service" ];
|
||||
before = [ "harmonia.service" ];
|
||||
serviceConfig = {
|
||||
Type = "notify";
|
||||
ExecStartPre = "/usr/bin/env mkdir -p /mnt/attic";
|
||||
ExecStartPre = "/usr/bin/env mkdir -p /mnt/harmonia";
|
||||
ExecStart = "${lib.getExe pkgs.rclone} mount --config ${
|
||||
config.sops.secrets."rclone/config".path
|
||||
} --cache-dir /var/cache/rclone --transfers=32 --allow-other rsyncnet:attic /mnt/attic ";
|
||||
ExecStop = "${lib.getExe' pkgs.fuse "fusermount"} -u /mnt/photos";
|
||||
} --cache-dir /var/cache/rclone --transfers=32 --allow-other rsyncnet:harmonia /mnt/harmonia ";
|
||||
ExecStop = "${lib.getExe' pkgs.fuse "fusermount"} -u /mnt/harmonia";
|
||||
};
|
||||
};
|
||||
programs.fuse.userAllowOther = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue