diff options
Diffstat (limited to 'machines')
-rw-r--r-- | machines/x220/configuration.nix | 3 | ||||
-rwxr-xr-x | machines/x220/hardware-configuration.nix | 9 |
2 files changed, 12 insertions, 0 deletions
diff --git a/machines/x220/configuration.nix b/machines/x220/configuration.nix index 6bb4e44..28110b6 100644 --- a/machines/x220/configuration.nix +++ b/machines/x220/configuration.nix @@ -40,6 +40,9 @@ in networking = { hostName = "x220"; + firewall.allowedTCPPorts = [ + 6969 # qrcp + ]; networkmanager = { enable = true; diff --git a/machines/x220/hardware-configuration.nix b/machines/x220/hardware-configuration.nix index d2c7fbc..4f7b908 100755 --- a/machines/x220/hardware-configuration.nix +++ b/machines/x220/hardware-configuration.nix @@ -45,6 +45,15 @@ device = "/dev/disk/by-label/docker"; fsType = "ext4"; }; + "/mnt/qnap" = { + device = "//192.168.1.119/Patryk"; + fsType = "cifs"; + options = let + # this line prevents hanging on network split + automount_opts = "x-systemd.automount,noauto,x-systemd.idle-timeout=60,x-systemd.device-timeout=5s,x-systemd.mount-timeout=5s,vers=1.0"; + + in ["${automount_opts},credentials=/etc/nixos/smb-secrets"]; + }; }; swapDevices = [ { device = "/dev/sda2"; } ]; |