npins partial update + various fixes and improvements
This commit is contained in:
parent
24de03cb06
commit
5b038453d2
6 changed files with 33 additions and 21 deletions
|
|
@ -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" = {
|
||||
|
|
|
|||
|
|
@ -45,8 +45,10 @@
|
|||
fsType = "tmpfs";
|
||||
options = [
|
||||
"size=1G"
|
||||
"mode=600"
|
||||
"mode=700"
|
||||
"noexec"
|
||||
"uid=1000"
|
||||
"gid=1000"
|
||||
];
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,10 @@
|
|||
{
|
||||
# Classic deny all
|
||||
networking.firewall = {
|
||||
allowedTCPPorts = [ ];
|
||||
allowedUDPPorts = [ ];
|
||||
allowedTCPPorts = [
|
||||
49676
|
||||
1716
|
||||
];
|
||||
allowedUDPPorts = [ 49676 ];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue