2024-01-22 22:50:51 +01:00
|
|
|
{ ... }: {
|
2020-12-21 14:35:50 +01:00
|
|
|
imports = [
|
2024-01-24 00:24:04 +00:00
|
|
|
../../snippets/home-manager-with-zsh.nix
|
|
|
|
../../snippets/nix-settings-holo-chain.nix
|
2024-01-24 23:20:45 +00:00
|
|
|
# TODO: double-check whether this works at all after the most recent changes
|
|
|
|
# ../../snippets/radicale.nix
|
2024-01-24 00:24:04 +00:00
|
|
|
../../snippets/sway-desktop.nix
|
|
|
|
../../snippets/timezone.nix
|
|
|
|
|
2020-12-21 14:35:50 +01:00
|
|
|
../../profiles/common/configuration.nix
|
|
|
|
../../profiles/graphical/configuration.nix
|
2021-01-04 10:55:36 +01:00
|
|
|
../../modules/opinionatedDisk.nix
|
2023-05-23 18:11:30 +02:00
|
|
|
../../cachix.nix
|
2020-12-21 14:35:50 +01:00
|
|
|
|
|
|
|
./system.nix
|
|
|
|
./hw.nix
|
|
|
|
./pkg.nix
|
|
|
|
./user.nix
|
2021-01-30 18:03:29 +01:00
|
|
|
./boot.nix
|
2024-01-18 14:59:17 +00:00
|
|
|
|
|
|
|
# samba seerver
|
|
|
|
({ lib, ... }: {
|
|
|
|
|
|
|
|
# networking.firewall.enable = lib.mkForce false;
|
|
|
|
services.samba-wsdd.enable = true; # make shares visible for windows 10 clients
|
|
|
|
networking.firewall.allowedTCPPorts = [
|
|
|
|
5357 # wsdd
|
|
|
|
];
|
|
|
|
networking.firewall.allowedUDPPorts = [
|
|
|
|
3702 # wsdd
|
|
|
|
];
|
|
|
|
services.samba = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
securityType = "user";
|
|
|
|
|
|
|
|
extraConfig = ''
|
|
|
|
workgroup = ARBEITSGRUPPE
|
|
|
|
server string = steveej-t14
|
|
|
|
netbios name = steveej-t14
|
|
|
|
security = user
|
|
|
|
|
|
|
|
# use sendfile = yes
|
|
|
|
|
|
|
|
# for executables on windows
|
|
|
|
acl allow execute always = True
|
|
|
|
|
|
|
|
# legacy windows quirks
|
|
|
|
max protocol = NT1
|
|
|
|
min protocol = NT1
|
|
|
|
ntlm auth = yes
|
|
|
|
|
|
|
|
# client max protocol = SMB1
|
|
|
|
# client min protocol = NT1
|
|
|
|
|
|
|
|
# note: localhost is the ipv6 localhost ::1
|
|
|
|
hosts allow = 192.168. 127.0.0.1 localhost
|
|
|
|
hosts deny = 0.0.0.0/0
|
|
|
|
guest account = nobody
|
|
|
|
map to guest = bad user
|
|
|
|
'';
|
|
|
|
shares = {
|
|
|
|
voodoo = {
|
|
|
|
path = "/home/steveej/Desktop/voodoo";
|
|
|
|
browseable = "yes";
|
|
|
|
"read only" = "no";
|
|
|
|
"guest ok" = "no";
|
|
|
|
"create mask" = "0644";
|
|
|
|
"directory mask" = "0755";
|
|
|
|
# "force user" = "steveej";
|
|
|
|
# "force group" = "users";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
})
|
2020-12-21 14:35:50 +01:00
|
|
|
];
|
|
|
|
}
|