Skip to content

Commit

Permalink
fix: disable samba for quickemu
Browse files Browse the repository at this point in the history
  • Loading branch information
zeorin committed Apr 6, 2024
1 parent a76d90e commit ad922dd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 48 deletions.
4 changes: 1 addition & 3 deletions home-manager/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5525,9 +5525,7 @@ in {
tor-browser-bundle-bin
virt-manager
qemu
(unstable.quickemu.override {
qemu = unstable.qemu.override { smbdSupport = true; };
})
quickemu
slack
discord
tdesktop
Expand Down
45 changes: 0 additions & 45 deletions nixos/common/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -522,8 +522,6 @@
allowedTCPPorts = [
# Calibre wireless
9090
# Samba
5357
# Syncthing
22000
];
Expand All @@ -537,8 +535,6 @@
allowedUDPPorts = [
# Calibre wireless
9090
# Samba
3702
# Syncthing
21027
22000
Expand All @@ -552,47 +548,6 @@
];
};
};
services.samba-wsdd.enable = true;
services.samba = {
enable = true;
openFirewall = true;
securityType = "user";
extraConfig = ''
workgroup = WORKGROUP
server string = smbnix
netbios name = smbnix
security = user
#use sendfile = yes
#max protocol = smb2
# note: localhost is the ipv6 localhost ::1
hosts allow = 192.168.122. 192.168.0. 127.0.0.1 localhost
hosts deny = 0.0.0.0/0
guest account = nobody
map to guest = bad user
'';
shares = {
public = {
path = "/mnt/Shares/Public";
browseable = "yes";
"read only" = "no";
"guest ok" = "yes";
"create mask" = "0644";
"directory mask" = "0755";
"force user" = "zeorin";
"force group" = "zeorin";
};
private = {
path = "/mnt/Shares/Private";
browseable = "yes";
"read only" = "no";
"guest ok" = "no";
"create mask" = "0644";
"directory mask" = "0755";
"force user" = "zeorin";
"force group" = "zeorin";
};
};
};

services.tailscale = {
enable = true;
Expand Down

0 comments on commit ad922dd

Please sign in to comment.