A new start
This commit is contained in:
commit
72271e8cae
78 changed files with 2472 additions and 0 deletions
57
profiles/mount-nas/default.nix
Normal file
57
profiles/mount-nas/default.nix
Normal file
|
@ -0,0 +1,57 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
environment.systemPackages = [ pkgs.sshfs ];
|
||||
|
||||
fileSystems = let
|
||||
nasUser = "andrea";
|
||||
nasHost = "ccr.ydns.eu";
|
||||
fsType = "fuse.sshfs";
|
||||
target = "/home/ccr/nas";
|
||||
options = [
|
||||
"delay_connect"
|
||||
"_netdev,user"
|
||||
"idmap=user"
|
||||
"transform_symlinks"
|
||||
"identityfile=/home/andrea/.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";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue