nixfleet/profiles/mount-nas/default.nix
Andrea Ciceri d99fd6a3e6
Things
- disabled auto mounting ccr.ydns.eu
- `hl-todo` mode for Emacs
2022-06-05 15:35:26 +02:00

61 lines
1.7 KiB
Nix

# FIXME: why this doesn't work anymore?
{ 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/";
# };
};
}