diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2018-04-30 14:57:16 +0200 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2018-04-30 14:57:16 +0200 |
| commit | 1179681099b6da88c100d5f2cc9244acaee49f8a (patch) | |
| tree | c85fe5b58849ce229fd43ddb9a6924ca066cbd0f | |
| parent | e58370464efbe2672246610c88e91dd28afa6cfb (diff) | |
| download | nixos-1179681099b6da88c100d5f2cc9244acaee49f8a.tar nixos-1179681099b6da88c100d5f2cc9244acaee49f8a.tar.gz nixos-1179681099b6da88c100d5f2cc9244acaee49f8a.tar.bz2 nixos-1179681099b6da88c100d5f2cc9244acaee49f8a.tar.xz nixos-1179681099b6da88c100d5f2cc9244acaee49f8a.zip | |
samba stuff
| -rw-r--r-- | hel.nix | 32 | ||||
| -rw-r--r-- | odin.nix | 6 |
2 files changed, 37 insertions, 1 deletions
| @@ -556,5 +556,37 @@ | |||
| 556 | MemoryHigh = "50%"; | 556 | MemoryHigh = "50%"; |
| 557 | MemoryMax = "75%"; | 557 | MemoryMax = "75%"; |
| 558 | }; | 558 | }; |
| 559 | |||
| 560 | services.samba = { | ||
| 561 | enable = true; | ||
| 562 | extraConfig = '' | ||
| 563 | domain master = no | ||
| 564 | workgroup = ASGARD | ||
| 565 | load printers = no | ||
| 566 | printing = bsd | ||
| 567 | printcap name = /dev/null | ||
| 568 | disable spoolss = yes | ||
| 569 | ''; | ||
| 570 | }; | ||
| 571 | |||
| 572 | systemd.mounts = [ | ||
| 573 | { | ||
| 574 | where = "/media"; | ||
| 575 | what = "\\\\odin.asgard.yggdrasil\\media"; | ||
| 576 | type = "cifs"; | ||
| 577 | options = lib.concatStringsSep "," | ||
| 578 | [ "guest" | ||
| 579 | ]; | ||
| 580 | } | ||
| 581 | ]; | ||
| 582 | |||
| 583 | systemd.automounts = [ | ||
| 584 | { | ||
| 585 | where = "/media"; | ||
| 586 | automountConfig = { | ||
| 587 | TimeoutIdleSec = "5min"; | ||
| 588 | }; | ||
| 589 | } | ||
| 590 | ]; | ||
| 559 | } | 591 | } |
| 560 | 592 | ||
| @@ -220,7 +220,7 @@ | |||
| 220 | }; | 220 | }; |
| 221 | }; | 221 | }; |
| 222 | extraConfig = '' | 222 | extraConfig = '' |
| 223 | domain master = true | 223 | domain master = yes |
| 224 | workgroup = ASGARD | 224 | workgroup = ASGARD |
| 225 | load printers = no | 225 | load printers = no |
| 226 | printing = bsd | 226 | printing = bsd |
| @@ -248,6 +248,10 @@ | |||
| 248 | "upperdir=/home/mherold/.eos.upper" | 248 | "upperdir=/home/mherold/.eos.upper" |
| 249 | "workdir=/home/mherold/.eos.work" | 249 | "workdir=/home/mherold/.eos.work" |
| 250 | ]; | 250 | ]; |
| 251 | |||
| 252 | unitConfig = { | ||
| 253 | RequiresMountsFor = [ "/srv/eos.lower" "/home/mherold/.eos.upper" "/home/mherold/.eos.work" ]; | ||
| 254 | }; | ||
| 251 | } | 255 | } |
| 252 | ]; | 256 | ]; |
| 253 | 257 | ||
