diff --git a/hosts/alt/configuration.nix b/hosts/alt/configuration.nix index bca694c..07011f6 100644 --- a/hosts/alt/configuration.nix +++ b/hosts/alt/configuration.nix @@ -9,6 +9,7 @@ [ # Include the results of the hardware scan. (modulesPath + "/virtualisation/proxmox-lxc.nix") ../modules/base.nix + ../modules/kafka-mounts.nix ]; nix.settings = { sandbox = false; }; diff --git a/hosts/modules/kafka-mounts.nix b/hosts/modules/kafka-mounts.nix new file mode 100644 index 0000000..3d2f318 --- /dev/null +++ b/hosts/modules/kafka-mounts.nix @@ -0,0 +1,17 @@ +{ config, pkgs, inputs, ... }: +{ + environment.systemPackages = with pkgs; [ + cifs-utils + ]; + + # For mount.cifs, required unless domain name resolution is not needed. + fileSystems."/mnt/kafka/video" = { + device = "//kafka.local/video"; + fsType = "cifs"; + + options = ["credentials=/etc/nixos/smb-secrets,uid=1000,gid=100"]; + # options = let + # automount_opts = "x-systemd.automount,noauto,x-systemd.idle-timeout=60,x-systemd.device-timeout=5s,x-systemd.mount-timeout=5s,user,users"; + # in ["${automount_opts},credentials=/etc/nixos/smb-secrets,uid=1000,gid=100"]; + }; +}