Add kafka mount to alt
This commit is contained in:
17
hosts/modules/kafka-mounts.nix
Normal file
17
hosts/modules/kafka-mounts.nix
Normal file
@@ -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"];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user