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"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.enableAllFirmware = true; hardware.enableAllFirmware = true;
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
hardware.opengl = { hardware.graphics = {
enable = true; enable = true;
enable32Bit = true;
extraPackages = with pkgs; [ extraPackages = with pkgs; [
intel-media-driver intel-media-driver
intel-vaapi-driver intel-vaapi-driver

View file

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