From 84fadc937360e1b1090e1ca518b0a77bf900f04b Mon Sep 17 00:00:00 2001 From: Jordan Ashurst Date: Fri, 18 Sep 2026 04:23:42 -0700 Subject: [PATCH] modules: remove mounts.nix and samba.nix (moved to hosts/dogma-nixos) - mounts/samba now exclusive to dogma-nixos per request, RTX/WSL without --- modules/mounts.nix | 57 ------------------------------------ modules/samba.nix | 72 ---------------------------------------------- 2 files changed, 129 deletions(-) delete mode 100644 modules/mounts.nix delete mode 100644 modules/samba.nix diff --git a/modules/mounts.nix b/modules/mounts.nix deleted file mode 100644 index 04c753e..0000000 --- a/modules/mounts.nix +++ /dev/null @@ -1,57 +0,0 @@ -{ - fileSystems = { - "/mnt/games" = { - device = "/dev/disk/by-uuid/969eb1a0-fb99-46d1-96cf-57a8644ee2d1"; - fsType = "btrfs"; - options = [ - "users" - "compress=zstd" - "subvol=@games" - "nofail" - ]; - }; - "/mnt/photo" = { - device = "/dev/disk/by-uuid/969eb1a0-fb99-46d1-96cf-57a8644ee2d1"; - fsType = "btrfs"; - options = [ - "users" - "compress=zstd" - "subvol=@Pictures" - "nofail" - ]; - }; - - "/mnt/media" = { - device = "/dev/disk/by-uuid/969eb1a0-fb99-46d1-96cf-57a8644ee2d1"; - fsType = "btrfs"; - options = [ - "users" - "compress=zstd" - "subvol=@media" - "nofail" - ]; - }; - - "/mnt/winbackup" = { - device = "/dev/disk/by-uuid/969eb1a0-fb99-46d1-96cf-57a8644ee2d1"; - fsType = "btrfs"; - options = [ - "users" - "compress=zstd" - "subvol=@winbackup" - "nofail" - ]; - }; - - "/mnt/winhdd" = { - device = "/dev/sdb1"; - fsType = "ntfs"; - options = [ - "users" - "windows_names" - "noatime" - "nofail" - ]; - }; - }; -} diff --git a/modules/samba.nix b/modules/samba.nix deleted file mode 100644 index 0a69cb2..0000000 --- a/modules/samba.nix +++ /dev/null @@ -1,72 +0,0 @@ -{pkgs, ...}: { - services.samba = { - enable = true; - openFirewall = true; - settings = { - global = { - "security" = "user"; - "workgroup" = "WORKGROUP"; - "server string" = "smbnix"; - "netbios name" = "smbnix"; - #"use sendfile" = "yes"; - #"max protocol" = "smb2"; - # note: localhost is the ipv6 localhost ::1 - "hosts allow" = "192.168.1.1/24 127.0.0.1 localhost"; - "guest account" = "nobody"; - "map to guest" = "bad user"; - }; - - "games" = { - "path" = "/mnt/games"; - "browseable" = "yes"; - "read only" = "no"; - "guest ok" = "no"; - "create mask" = "0644"; - "directory mask" = "0755"; - }; - - "media" = { - "path" = "/mnt/media"; - "browseable" = "yes"; - "read only" = "no"; - "guest ok" = "no"; - "create mask" = "0644"; - "directory mask" = "0755"; - }; - - "photos" = { - "path" = "/mnt/photo"; - "browseable" = "yes"; - "read only" = "no"; - "guest ok" = "no"; - "create mask" = "0644"; - "directory mask" = "0755"; - }; - - "winhdd" = { - "path" = "/mnt/winhdd"; - "browseable" = "yes"; - "read only" = "no"; - "guest ok" = "no"; - "create mask" = "0644"; - "directory mask" = "0755"; - }; - - "winback" = { - "path" = "/mnt/winbackup"; - "browseable" = "yes"; - "read only" = "no"; - "guest ok" = "no"; - "create mask" = "0644"; - "directory mask" = "0755"; - }; - }; - }; - - services.samba-wsdd = { - enable = true; - openFirewall = true; - }; - - environment.systemPackages = [pkgs.samba]; -}