feat: add samba server to andromedae for windows vms

This commit is contained in:
Dmitriy Kholkin 2025-08-21 04:36:30 +03:00
parent e26263fb2b
commit 8371bd9f7d
Signed by: AtaraxiaDev
GPG Key ID: FD266B810DF48DF2
2 changed files with 43 additions and 0 deletions

View File

@ -14,6 +14,7 @@ in
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
./boot.nix ./boot.nix
./samba.nix
inputs.catppuccin.nixosModules.catppuccin inputs.catppuccin.nixosModules.catppuccin
inputs.lsfg-vk.nixosModules.default inputs.lsfg-vk.nixosModules.default

View File

@ -0,0 +1,42 @@
{ ... }:
{
services.samba = {
enable = true;
openFirewall = true;
settings = {
global = {
"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" = "10.10.10. 127.0.0.1 localhost";
"hosts deny" = "0.0.0.0/0";
"guest account" = "ataraxia";
"map to guest" = "bad user";
};
"extra" = {
"path" = "/run/media/ataraxia/Extra/Anomaly";
"browseable" = "yes";
"read only" = "no";
"guest ok" = "no";
"create mask" = "0644";
"directory mask" = "0755";
"force user" = "ataraxia";
"force group" = "users";
};
"gamma" = {
"path" = "/media/games/Anomaly-Gamma";
"browseable" = "yes";
"read only" = "no";
"guest ok" = "no";
"create mask" = "0644";
"directory mask" = "0755";
"force user" = "ataraxia";
"force group" = "users";
};
};
};
}