homeserver: migrate to 24.11

This commit is contained in:
Tigor Hutasuhut 2024-11-24 12:07:59 +07:00
parent df38983ef5
commit a61d1e0f24
2 changed files with 12 additions and 10 deletions

View file

@ -158,8 +158,9 @@
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.enableAllFirmware = true;
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
hardware.opengl = {
hardware.graphics = {
enable = true;
enable32Bit = true;
extraPackages = with pkgs; [
intel-media-driver
intel-vaapi-driver

View file

@ -8,16 +8,17 @@ in
config = mkIf cfg.enable {
services.samba = {
enable = true;
securityType = "user";
openFirewall = true;
extraConfig = ''
workgroup = WORKGROUP
server string = smbnix
netbios name = smbnix
security = user
guest account = ${user.name}
'';
shares = {
settings = {
global = {
"invalid users" = [ "root" ];
workgroup = "WORKGROUP";
"server string" = "smbnix";
"netbios name" = "smbnix";
security = "user";
"guest account" = user.name;
"passwd program" = "/run/wrappers/bin/passwd %u";
};
nas = {
path = "/nas";
browsable = "yes";