npins partial update + various fixes and improvements

This commit is contained in:
boyreau 2026-11-04 15:56:31 +01:00
commit 5b038453d2
6 changed files with 33 additions and 21 deletions

View file

@ -63,6 +63,12 @@ in
"/home/zo/dev" = {
enable = true;
dest = "/tmp/backups/";
salvation.command = /* bash */ ''
SAVED_FILE="$(basename "$SRC")"
mv "$SRC" "/mfs/$SAVED_FILE";
HASH="$(${ipfs} files stat --hash "/$SAVED_FILE")"
${ipfs-cluster-ctl} pin add "$HASH";
'';
};
"/home/zo/Documents" = {

View file

@ -45,8 +45,10 @@
fsType = "tmpfs";
options = [
"size=1G"
"mode=600"
"mode=700"
"noexec"
"uid=1000"
"gid=1000"
];
};

View file

@ -1,7 +1,10 @@
{
# Classic deny all
networking.firewall = {
allowedTCPPorts = [ ];
allowedUDPPorts = [ ];
allowedTCPPorts = [
49676
1716
];
allowedUDPPorts = [ 49676 ];
};
}