added Windows file sharing support

This commit is contained in:
Elias Gasparis 2025-06-19 13:52:25 +08:00
parent be8da739ea
commit f0bb0b65d3
2 changed files with 40 additions and 3 deletions

View file

@ -54,13 +54,16 @@
xreader # pdf viewer
pdftk # pdf editor
# creative apps
# creative apps
kdePackages.kdenlive
audacity
gimp
pkgs.krita
element-desktop
# music apps
yt-dlp
audacity
#gaming
dosbox
@ -99,7 +102,7 @@
pciutils # lspci
usbutils # lsusb
# system call monitoring
# system call monitoring
strace # system call monitoring
ltrace # library call monitoring
lsof # list open files

View file

@ -0,0 +1,34 @@
{ config, pkgs, ... }:
{
# Windows File Sharing (Samba)
# Lets you share folders with other computers on your local network
# — including Windows and Linux systems.
#
# Only needed if you plan to share files across your network.
# Safe to disable if you don't use network file sharing.
# From https://codeberg.org/Linux-Is-Best/NixOS_Configuration/
services.samba = {
enable = true; # Enable Samba.
smbd.enable = true; # SMB daemon (core file sharing service).
nmbd.enable = true; # NetBIOS name resolution (for older Windows clients).
usershares.enable = true; # Allows users to share folders like ~/Public.
nsswins = true; # Enable WINS for name resolution (compatible with Windows).
settings = {
global = {
workgroup = "WORKGROUP"; # Standard Windows workgroup name.
security = "user"; # Require user authentication for shares.
"invalid users" = [ "root" ]; # Forbid root from using Samba.
};
};
};
# WS-Discovery (Windows Network Visibility in File Explorer)
# Makes your system show up in the “Network” tab on Windows 10+.
services.samba-wsdd = {
enable = true;
};
}