feat(Music): create samba share for music
This commit is contained in:
parent
0afbec2131
commit
a21d65df11
2 changed files with 32 additions and 1 deletions
|
|
@ -80,9 +80,11 @@
|
||||||
initialPassword = "asunarovow";
|
initialPassword = "asunarovow";
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "Khaïs COLIN";
|
description = "Khaïs COLIN";
|
||||||
extraGroups = [ "networkmanager" "wheel" "podman" "libvirtd" ];
|
extraGroups = [ "networkmanager" "wheel" "podman" "libvirtd" "music" ];
|
||||||
shell = pkgs.zsh;
|
shell = pkgs.zsh;
|
||||||
};
|
};
|
||||||
|
# access to /pile/Music
|
||||||
|
users.groups.music = {};
|
||||||
|
|
||||||
users.users.guest = {
|
users.users.guest = {
|
||||||
createHome = true;
|
createHome = true;
|
||||||
|
|
|
||||||
29
void.nix
29
void.nix
|
|
@ -9,4 +9,33 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
networking.hostName = "void"; # Define your hostname.
|
networking.hostName = "void"; # Define your hostname.
|
||||||
|
|
||||||
|
services.samba = {
|
||||||
|
enable = true;
|
||||||
|
openFirewall = true;
|
||||||
|
securityType = "user";
|
||||||
|
extraConfig = ''
|
||||||
|
workgroup = WORKGROUP
|
||||||
|
server string = void
|
||||||
|
netbios name = void
|
||||||
|
security = user
|
||||||
|
hosts allow = 0.0.0.0/0
|
||||||
|
guest account = nobody
|
||||||
|
map to guest = bad user
|
||||||
|
log level = 4
|
||||||
|
#smb encrypt = mandatory
|
||||||
|
'';
|
||||||
|
shares."Music" = {
|
||||||
|
path = "/pile/Music";
|
||||||
|
browsable = "yes";
|
||||||
|
"read only" = "yes";
|
||||||
|
"guest ok" = "no";
|
||||||
|
"read list" = "@music";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
users.users.music = {
|
||||||
|
group = "music";
|
||||||
|
isNormalUser = true;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue