mirror of
https://github.com/harryssecret/homelab-nix.git
synced 2025-01-18 21:29:33 +01:00
20 lines
288 B
Nix
20 lines
288 B
Nix
|
{pkgs, username, ...}: {
|
||
|
services.samba = {
|
||
|
enable = true;
|
||
|
openFirewall = true;
|
||
|
};
|
||
|
|
||
|
users.users.nas = {
|
||
|
|
||
|
};
|
||
|
|
||
|
users.users.${username} = {
|
||
|
isNormalUser = true;
|
||
|
};
|
||
|
|
||
|
systemd.tempfiles.rules = [
|
||
|
"d /srv/files 0755 nas nas"
|
||
|
];
|
||
|
|
||
|
system.stateVersion = "24.11";
|
||
|
}
|