- upgraded to 21.11 unstable - old (working) amule version - android tools (adb) - mounting nas via ssh (new specific key) - scrcpy - tor-browser - vscode settings - home server settings
59 lines
1.6 KiB
Nix
59 lines
1.6 KiB
Nix
{ pkgs, ... }:
|
|
{
|
|
environment.systemPackages = [ pkgs.sshfs ];
|
|
|
|
fileSystems =
|
|
let
|
|
nasUser = "ccr";
|
|
nasHost = "ccr.ydns.eu";
|
|
fsType = "fuse.sshfs";
|
|
target = "/home/ccr/nas";
|
|
options = [
|
|
"delay_connect"
|
|
"_netdev,user"
|
|
"idmap=user"
|
|
"transform_symlinks"
|
|
# ssh-add -L > ~/.ssh/id_rsa
|
|
"identityfile=/home/ccr/.ssh/id_rsa"
|
|
"allow_other"
|
|
"default_permissions"
|
|
"uid=1000"
|
|
"gid=100"
|
|
"nofail"
|
|
];
|
|
in
|
|
{
|
|
"${target}/amule" = {
|
|
inherit fsType options;
|
|
device = "${nasUser}@${nasHost}:/mnt/archivio/amule";
|
|
};
|
|
"${target}/transmission" = {
|
|
inherit fsType options;
|
|
device = "${nasUser}@${nasHost}:/mnt/archivio/transmission";
|
|
};
|
|
"${target}/calibre" = {
|
|
inherit fsType options;
|
|
device = "${nasUser}@${nasHost}:/mnt/archivio/calibre";
|
|
};
|
|
"${target}/archivio" = {
|
|
inherit fsType options;
|
|
device = "${nasUser}@${nasHost}:/mnt/archivio/archivio";
|
|
};
|
|
"${target}/film" = {
|
|
inherit fsType options;
|
|
device = "${nasUser}@${nasHost}:/mnt/film/film";
|
|
};
|
|
"${target}/syncthing" = {
|
|
inherit fsType options;
|
|
device = "${nasUser}@${nasHost}:/mnt/archivio/syncthing";
|
|
};
|
|
"${target}/aria" = {
|
|
inherit fsType options;
|
|
device = "${nasUser}@${nasHost}:/mnt/archivio/aria2";
|
|
};
|
|
"${target}/musica" = {
|
|
inherit fsType options;
|
|
device = "${nasUser}@${nasHost}:/mnt/film/musica";
|
|
};
|
|
};
|
|
}
|