From 127cf57881e082f3dc789115eb7cd0a67d273bf5 Mon Sep 17 00:00:00 2001 From: kat witch Date: Sun, 25 Apr 2021 22:31:56 +0100 Subject: [PATCH] hosts/samhain: Added hexnet NFS --- hosts/samhain/nixos/default.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/hosts/samhain/nixos/default.nix b/hosts/samhain/nixos/default.nix index 23af0dd3..fc26d075 100644 --- a/hosts/samhain/nixos/default.nix +++ b/hosts/samhain/nixos/default.nix @@ -38,6 +38,18 @@ in { value.shellCommand = "bitw get infra/hexdns-dynamic -f hostname"; }; + fileSystems."/mnt/hex-corn" = { + device = "storah.net.lilwit.ch:/data/cornbox"; + fsType = "nfs"; + options = [ "x-systemd.automount" "noauto" ]; + }; + + fileSystems."/mnt/hex-tor" = { + device = "storah.net.lilwit.ch:/data/torrents"; + fsType = "nfs"; + options = [ "x-systemd.automount" "noauto" ]; + }; + secrets.files.kat-glauca-dns = { text = '' user="${tf.variables.dyn_username.ref}" @@ -80,7 +92,7 @@ in { # other stuffs boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; - boot.supportedFilesystems = [ "zfs" "xfs" ]; + boot.supportedFilesystems = [ "zfs" "xfs" "nfs" ]; networking.hostName = "samhain"; networking.hostId = "617050fc"; networking.useDHCP = false;