index — robonix @ 8d269cd59a52faf71507be0859c5cf1031b43ce0

Nix config for the Robotik AG at the Johannes-Kepler-Gymnasium Chemnitz

added samba share
RoboAG Guru crispy@crispy-caesus.eu
Fri, 09 Oct 2026 15:50:42 +0200
commit

8d269cd59a52faf71507be0859c5cf1031b43ce0

parent

28c0b3923fd4918b99cd986bf0897ff7363a8711

3 files changed, 17 insertions(+), 0 deletions(-)

jump to
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"]; + }; +}