2
2
mirror of https://git.feal.no/felixalb/nixos-config.git synced 2024-12-22 12:07:29 +01:00

Compare commits

..

3 Commits

4 changed files with 17 additions and 17 deletions

View File

@ -53,9 +53,10 @@
hardware.nvidia = { hardware.nvidia = {
modesetting.enable = true; modesetting.enable = true;
open = true;
}; };
hardware.opengl.enable = true; hardware.graphics.enable = true;
services.xserver.videoDrivers = ["nvidia"]; services.xserver.videoDrivers = ["nvidia"];
system.stateVersion = "24.05"; system.stateVersion = "24.05";

View File

@ -16,6 +16,6 @@
# ''; # '';
# }; # };
networking.firewall.allowedTCPPorts = [ 111 2049 20048 ]; # networking.firewall.allowedTCPPorts = [ 111 2049 20048 ];
networking.firewall.allowedUDPPorts = [ 111 20048]; # networking.firewall.allowedUDPPorts = [ 111 20048];
} }

View File

@ -11,23 +11,22 @@
requestEncryptionCredentials = false; requestEncryptionCredentials = false;
}; };
supportedFilesystems = [ "zfs" ]; supportedFilesystems = [ "zfs" ];
kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
}; };
services.zfs.autoScrub = { services.zfs.autoScrub = {
enable = true; enable = true;
interval = "Wed *-*-8..14 00:00:00"; interval = "Wed *-*-8..14 00:00:00";
}; };
fileSystems = { # fileSystems = {
"/mnt/feal-syn1/backup" = { # "/mnt/feal-syn1/backup" = {
device = "feal-syn1.home.feal.no:/volume2/backup"; # device = "feal-syn1.home.feal.no:/volume2/backup";
fsType = "nfs"; # fsType = "nfs";
options = [ # options = [
"defaults" # "defaults"
"noatime" # "noatime"
"rw" # "rw"
"nfsvers=3" # "nfsvers=3"
]; # ];
}; # };
}; # };
} }

View File

@ -7,7 +7,7 @@
users.users.${config.services.jellyfin.user}.extraGroups = [ "video" "render" ]; users.users.${config.services.jellyfin.user}.extraGroups = [ "video" "render" ];
systemd.services.jellyfin.serviceConfig = { systemd.services.jellyfin.serviceConfig = {
DeviceAllow = lib.mkForce [ "/dev/dri/card0" ]; DeviceAllow = lib.mkForce [ "/dev/dri/card0" "/dev/dri/card1" ];
}; };
services.nginx.virtualHosts."jellyfin.home.feal.no" = { services.nginx.virtualHosts."jellyfin.home.feal.no" = {