summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-11-10 01:01:41 -0800
committerFuwn <[email protected]>2024-11-10 01:01:45 -0800
commit5b5d506ba6f06c732b6d90a086a25aa580bc9188 (patch)
tree6b6e3a88c14ad0d5c4096a97ce6236cd8c6794d2 /modules
parentlock: tsutsumi (diff)
downloadnixos-config-5b5d506ba6f06c732b6d90a086a25aa580bc9188.tar.xz
nixos-config-5b5d506ba6f06c732b6d90a086a25aa580bc9188.zip
desktop: plex samba share
Diffstat (limited to 'modules')
-rw-r--r--modules/desktop/software/services/default.nix1
-rw-r--r--modules/desktop/software/services/samba.nix21
2 files changed, 22 insertions, 0 deletions
diff --git a/modules/desktop/software/services/default.nix b/modules/desktop/software/services/default.nix
index 9d38a91..976dbe6 100644
--- a/modules/desktop/software/services/default.nix
+++ b/modules/desktop/software/services/default.nix
@@ -3,6 +3,7 @@
./libinput.nix
./ollama.nix
./plex.nix
+ ./samba.nix
];
services.xserver.videoDrivers = [ "nvidia" ];
diff --git a/modules/desktop/software/services/samba.nix b/modules/desktop/software/services/samba.nix
new file mode 100644
index 0000000..3409a6f
--- /dev/null
+++ b/modules/desktop/software/services/samba.nix
@@ -0,0 +1,21 @@
+{ config, ... }:
+{
+ services = {
+ samba-wsdd.enable = true;
+
+ samba = {
+ enable = true;
+
+ settings.plex = {
+ browseable = "yes";
+ path = "${config.modules.mounts.plex.name}/Plex";
+ "guest ok" = "no";
+ "read only" = "no";
+ "create mask" = "0777";
+ "directory mask" = "0777";
+ "valid users" = config.modules.primaryUser;
+ "unix extensions" = "no";
+ };
+ };
+ };
+}