diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2017-08-09 17:45:31 +0200 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2017-08-09 17:45:31 +0200 |
| commit | 0d810dfab9f6e12e9af9b4ba86e5c38ae1a51ca5 (patch) | |
| tree | 3adcf65410e2ecf45468a9f0fb17c07910df12d6 | |
| parent | d9321f775923a006421c24aaed5650c201715d74 (diff) | |
| download | nixos-0d810dfab9f6e12e9af9b4ba86e5c38ae1a51ca5.tar nixos-0d810dfab9f6e12e9af9b4ba86e5c38ae1a51ca5.tar.gz nixos-0d810dfab9f6e12e9af9b4ba86e5c38ae1a51ca5.tar.bz2 nixos-0d810dfab9f6e12e9af9b4ba86e5c38ae1a51ca5.tar.xz nixos-0d810dfab9f6e12e9af9b4ba86e5c38ae1a51ca5.zip | |
Samba on bragi
| -rw-r--r-- | bragi.nix | 6 |
1 files changed, 6 insertions, 0 deletions
| @@ -209,7 +209,9 @@ in rec { | |||
| 209 | 80 # HTTP | 209 | 80 # HTTP |
| 210 | 5432 # PostgreSQL | 210 | 5432 # PostgreSQL |
| 211 | 6600 # MPD | 211 | 6600 # MPD |
| 212 | 139 445 # SAMBA | ||
| 212 | ]; | 213 | ]; |
| 214 | allowedUDPPorts = [ 137 138 ]; # SAMBA | ||
| 213 | allowedUDPPortRanges = [ { from = 60000; to = 61000; } # mosh | 215 | allowedUDPPortRanges = [ { from = 60000; to = 61000; } # mosh |
| 214 | ]; | 216 | ]; |
| 215 | extraCommands = '' | 217 | extraCommands = '' |
| @@ -258,6 +260,10 @@ in rec { | |||
| 258 | ''; | 260 | ''; |
| 259 | }; | 261 | }; |
| 260 | 262 | ||
| 263 | services.samba = { | ||
| 264 | enable = true; | ||
| 265 | }; | ||
| 266 | |||
| 261 | users.extraUsers.root = let | 267 | users.extraUsers.root = let |
| 262 | template = (import users/gkleen.nix); | 268 | template = (import users/gkleen.nix); |
| 263 | in { | 269 | in { |
