stockholm/makefu/2configs/share/gum.nix

37 lines
907 B
Nix
Raw Normal View History

2016-10-28 12:11:31 +00:00
{ config, lib, pkgs, ... }:
let
hostname = config.krebs.build.host.name;
in {
# users.users.smbguest = {
# name = "smbguest";
# uid = config.ids.uids.smbguest;
# description = "smb guest user";
# home = "/var/empty";
# };
2018-09-04 07:47:08 +00:00
environment.systemPackages = [ pkgs.samba ];
2016-10-28 12:11:31 +00:00
services.samba = {
enable = true;
shares = {
2022-09-23 21:01:58 +00:00
cloud-proxy = {
path = "/media/cloud";
2016-10-28 12:11:31 +00:00
"read only" = "no";
browseable = "yes";
"guest ok" = "no";
"valid users" = "download";
};
};
extraConfig = ''
# guest account = smbguest
# map to guest = bad user
# disable printing
load printers = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes
'';
};
networking.firewall.interfaces.retiolum.allowedTCPPorts = [ 445 ];
networking.firewall.interfaces.wiregrill.allowedTCPPorts = [ 445 ];
2016-10-28 12:11:31 +00:00
}