Add kafka mount to alt
This commit is contained in:
parent
95ec5f70b0
commit
ab15d1fde2
2 changed files with 18 additions and 0 deletions
|
|
@ -9,6 +9,7 @@
|
||||||
[ # Include the results of the hardware scan.
|
[ # Include the results of the hardware scan.
|
||||||
(modulesPath + "/virtualisation/proxmox-lxc.nix")
|
(modulesPath + "/virtualisation/proxmox-lxc.nix")
|
||||||
../modules/base.nix
|
../modules/base.nix
|
||||||
|
../modules/kafka-mounts.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
nix.settings = { sandbox = false; };
|
nix.settings = { sandbox = false; };
|
||||||
|
|
|
||||||
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"];
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue