diff options
author | Karel Kočí <cynerd@email.cz> | 2024-05-06 12:41:18 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2024-05-06 12:41:18 +0200 |
commit | 7fe4a329bf6cf10b8522bd6fde5cadecb38c868e (patch) | |
tree | 3fac820e96b3b78c7bd0ea85cc11ef3e95116800 /nixos | |
parent | 3f3344716b98ff8300e57d16885be9f6e0eec51e (diff) | |
download | nixos-personal-7fe4a329bf6cf10b8522bd6fde5cadecb38c868e.tar.gz nixos-personal-7fe4a329bf6cf10b8522bd6fde5cadecb38c868e.tar.bz2 nixos-personal-7fe4a329bf6cf10b8522bd6fde5cadecb38c868e.zip |
lipwig: access spt nas over SSH
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/configurations/lipwig.nix | 15 | ||||
-rw-r--r-- | nixos/configurations/spt-omnia.nix | 5 |
2 files changed, 19 insertions, 1 deletions
diff --git a/nixos/configurations/lipwig.nix b/nixos/configurations/lipwig.nix index 090e8f5..dd183b3 100644 --- a/nixos/configurations/lipwig.nix +++ b/nixos/configurations/lipwig.nix @@ -35,6 +35,21 @@ fsType = "fuse.bindfs"; options = ["map=syncthing/nextcloud:@syncthing/@nextcloud"]; }; + "/nas/spt" = { + device = "nas@omnia.spt:/data/nas"; + fsType = "fuse.sshfs"; + options = [ + "noauto" + "x-systemd.automount" + "_netdev" + "reconnect" + "identityfile=/run/secrets/nas.ssh.priv" + "allow_other" + "idmap=user" + "uid=nextcloud" + "gid=nextcloud" + ]; + }; }; networking = { diff --git a/nixos/configurations/spt-omnia.nix b/nixos/configurations/spt-omnia.nix index 22d9ecc..e11a29c 100644 --- a/nixos/configurations/spt-omnia.nix +++ b/nixos/configurations/spt-omnia.nix @@ -88,7 +88,10 @@ in { users = { nas = { group = "nas"; - openssh.authorizedKeys.keyFiles = [(config.personal-secrets + "/unencrypted/nas.pub")]; + openssh.authorizedKeys.keyFiles = [ + (config.personal-secrets + "/unencrypted/nas.pub") + (config.personal-secrets + "/unencrypted/nas-spt.pub") + ]; isNormalUser = true; home = "/data/nas"; homeMode = "770"; |