added Windows file sharing support
This commit is contained in:
parent
be8da739ea
commit
f0bb0b65d3
2 changed files with 40 additions and 3 deletions
|
@ -56,11 +56,14 @@
|
||||||
|
|
||||||
# creative apps
|
# creative apps
|
||||||
kdePackages.kdenlive
|
kdePackages.kdenlive
|
||||||
audacity
|
|
||||||
gimp
|
gimp
|
||||||
pkgs.krita
|
pkgs.krita
|
||||||
element-desktop
|
element-desktop
|
||||||
|
|
||||||
|
# music apps
|
||||||
|
yt-dlp
|
||||||
|
audacity
|
||||||
|
|
||||||
#gaming
|
#gaming
|
||||||
dosbox
|
dosbox
|
||||||
|
|
||||||
|
|
34
modules/windows-support.nix
Normal file
34
modules/windows-support.nix
Normal 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;
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue