the configuration for all my nixos machines (hacky! bad! ugly!)
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

re-enable smb on uruk

+73
+73
hosts/uruk/configuration.nix
··· 27 27 systemd.targets.hibernate.enable = false; 28 28 systemd.targets.hybrid-sleep.enable = false; 29 29 30 + # samba 31 + services.samba = { 32 + enable = true; 33 + securityType = "user"; 34 + openFirewall = true; 35 + settings = { 36 + global = { 37 + "workgroup" = "THOTH"; 38 + "server string" = config.networking.hostName; 39 + "netbios name" = config.networking.hostName; 40 + "server smb encrypt" = "desired"; 41 + "security" = "user"; 42 + #"use sendfile" = "yes"; 43 + #"max protocol" = "smb2"; 44 + # note: localhost is the ipv6 localhost ::1 45 + "hosts allow" = "192.168.0. 127.0.0.1 100.64.0.0/10 localhost"; 46 + "hosts deny" = "0.0.0.0/0"; 47 + "guest account" = "nobody"; 48 + "map to guest" = "bad user"; 49 + }; 50 + "video" = { 51 + "path" = "/data/video"; 52 + "browseable" = "yes"; 53 + "read only" = "yes"; 54 + "guest ok" = "yes"; 55 + "create mask" = "0644"; 56 + "directory mask" = "0755"; 57 + "force user" = "nobody"; 58 + "force group" = "users"; 59 + }; 60 + "music" = { 61 + "path" = "/data/music"; 62 + "browseable" = "yes"; 63 + "read only" = "yes"; 64 + "guest ok" = "yes"; 65 + "create mask" = "0644"; 66 + "directory mask" = "0755"; 67 + "force user" = "nobody"; 68 + "force group" = "users"; 69 + }; 70 + "books" = { 71 + "path" = "/data/books"; 72 + "browseable" = "yes"; 73 + "read only" = "yes"; 74 + "guest ok" = "yes"; 75 + "create mask" = "0644"; 76 + "directory mask" = "0755"; 77 + "force user" = "nobody"; 78 + "force group" = "users"; 79 + }; 80 + "emul" = { 81 + "path" = "/data/emul"; 82 + "browseable" = "yes"; 83 + "read only" = "yes"; 84 + "guest ok" = "yes"; 85 + "create mask" = "0644"; 86 + "directory mask" = "0755"; 87 + "force user" = "nobody"; 88 + "force group" = "users"; 89 + }; 90 + "wads" = { 91 + "path" = "/data/wads"; 92 + "browseable" = "yes"; 93 + "read only" = "yes"; 94 + "guest ok" = "yes"; 95 + "create mask" = "0644"; 96 + "directory mask" = "0755"; 97 + "force user" = "nobody"; 98 + "force group" = "users"; 99 + }; 100 + }; 101 + }; 102 + 30 103 profiles = { 31 104 desktop = { 32 105 enable = true;