mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 05:36:59 +01:00
Migrate Nextcloud data
This commit is contained in:
parent
769d01b59f
commit
f56c03dcdc
5 changed files with 53 additions and 23 deletions
|
|
@ -105,6 +105,7 @@
|
|||
hashedPasswordFile = config.sops.secrets.eliosPassword.path;
|
||||
aliases = [
|
||||
"webshit@banditlair.com"
|
||||
"outlook-pascal@banditlair.com"
|
||||
"nexusmods.webshit@banditlair.com"
|
||||
"pizza.webshit@banditlair.com"
|
||||
"fnac.webshit@banditlair.com"
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
let
|
||||
uidFile = pkgs.writeText "uidfile" ''
|
||||
nextcloud:33
|
||||
nextcloud:993
|
||||
'';
|
||||
gidFile = pkgs.writeText "gidfile" ''
|
||||
nextcloud:33
|
||||
nextcloud:991
|
||||
'';
|
||||
in
|
||||
{
|
||||
|
|
@ -48,7 +48,7 @@ in
|
|||
"nomap=ignore"
|
||||
];
|
||||
in
|
||||
"${pkgs.sshfs}/bin/mount.fuse.sshfs www-data@10.0.2.2:/var/lib/nextcloud/data "
|
||||
"${pkgs.sshfs}/bin/mount.fuse.sshfs www-data@10.0.2.3:/nix/var/data/nextcloud/data "
|
||||
+ "/var/lib/nextcloud/data -o ${options}";
|
||||
ExecStopPost = "-${pkgs.fuse}/bin/fusermount -u /var/lib/nextcloud/data";
|
||||
KillMode = "process";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue