From a8701061ffba1d6acc85823ffefba412f5418ce0 Mon Sep 17 00:00:00 2001 From: Lyra Thorpe Date: Mon, 31 Aug 2026 02:35:28 +0100 Subject: [PATCH] feat(smb): add smb support --- hosts/Console/gaming.nix | 12 ++++++++++++ modules/common-nixos.nix | 2 ++ 2 files changed, 14 insertions(+) diff --git a/hosts/Console/gaming.nix b/hosts/Console/gaming.nix index a2a07ad..e987784 100644 --- a/hosts/Console/gaming.nix +++ b/hosts/Console/gaming.nix @@ -244,5 +244,17 @@ in pkgs.dualsensectl # DualSense LED/battery/mic control from the shell pkgs.mangohud # FPS/frametime overlay; use `mangohud %command%` in Steam pkgs.vulkan-tools # vulkaninfo, for checking the 32/64-bit ICDs Proton needs + pkgs.cifs-utils ]; + fileSystems."/mnt/share" = { + device = "//fs-01.inf.cbg.emmaisvery.gay/torrent"; + 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/smb-secrets,uid=1000,gid=100" ]; + }; } diff --git a/modules/common-nixos.nix b/modules/common-nixos.nix index 9ba118b..7cced37 100644 --- a/modules/common-nixos.nix +++ b/modules/common-nixos.nix @@ -48,6 +48,8 @@ fastfetch ]; + services.gvfs.enable = true; + # Fonts on every host. The Nerd Font carries the powerline/Nerd glyphs the # tmux statusline uses (foot names it explicitly in home/sway.nix); Noto sans + # colour emoji prevent tofu in terminals/TUIs/Firefox -- important on the WSL