added samba share
RoboAG Guru crispy@crispy-caesus.eu
Fri, 09 Oct 2026 15:50:42 +0200
3 files changed,
17 insertions(+),
0 deletions(-)
M
configuration.nix
→
configuration.nix
@@ -6,6 +6,7 @@ [
./hardware-configuration.nix ./modules/packages.nix ./modules/wireguard.nix + ./modules/samba.nix ]; boot.loader.systemd-boot.enable = true;
M
modules/packages.nix
→
modules/packages.nix
@@ -17,6 +17,7 @@ gcc
gnumake cmake neovim + vscodium vim git mesa
A
modules/samba.nix
@@ -0,0 +1,15 @@
+{ config, lib, pkgs, ... }: + +{ +# For mount.cifs, required unless domain name resolution is not needed. + environment.systemPackages = [ pkgs.cifs-utils ]; + fileSystems."/media/roboag" = { + device = "//192.168.2.20/roboag"; + 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"; + + in ["${automount_opts},credentials=/etc/nixos/modules/smb-secrets,uid=1000,gid=100"]; + }; +}