From e37de25fd2c5e03a5c5efc454bd188bf2dc14c50 Mon Sep 17 00:00:00 2001 From: BuyMyMojo Date: Mon, 31 Mar 2025 02:32:13 +1100 Subject: [PATCH 1/5] Fix service definition Related: 5d33cecfe63aaa58472bc6d6973e4af9594c754b --- nixos/services.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/services.nix b/nixos/services.nix index 5385e8e..e39667b 100644 --- a/nixos/services.nix +++ b/nixos/services.nix @@ -9,7 +9,7 @@ { systemd.services.jellyfin-rpc = { - enable = disable; + enable = false; path = [ pkgs.jellyfin-rpc ]; serviceConfig = { User = "buymymojo"; From 363242ce17d0e8e1c8b6cf23bb461416f9d4b89a Mon Sep 17 00:00:00 2001 From: BuyMyMojo Date: Mon, 31 Mar 2025 02:32:48 +1100 Subject: [PATCH 2/5] bump flake.lock --- nixos/flake.lock | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/nixos/flake.lock b/nixos/flake.lock index 2435a5e..6dccca2 100644 --- a/nixos/flake.lock +++ b/nixos/flake.lock @@ -61,11 +61,11 @@ ] }, "locked": { - "lastModified": 1743136572, - "narHash": "sha256-uwaVrKgi6g1TUq56247j6QvvFtYHloCkjCrEpGBvV54=", + "lastModified": 1743346616, + "narHash": "sha256-AB/ve2el1TB7k4iyogHGCVlWVkrhp3+4FKKMr1W5iKQ=", "owner": "nix-community", "repo": "home-manager", - "rev": "1efd2503172016a6742c87b47b43ca2c8145607d", + "rev": "1d2ed9c503cf41ca7f3db091edc8519dcdcd8b41", "type": "github" }, "original": { @@ -99,11 +99,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1742937945, - "narHash": "sha256-lWc+79eZRyvHp/SqMhHTMzZVhpxkRvthsP1Qx6UCq0E=", + "lastModified": 1743231893, + "narHash": "sha256-tpJsHMUPEhEnzySoQxx7+kA+KUtgWqvlcUBqROYNNt0=", "owner": "nixos", "repo": "nixpkgs", - "rev": "d02d88f8de5b882ccdde0465d8fa2db3aa1169f7", + "rev": "c570c1f5304493cafe133b8d843c7c1c4a10d3a6", "type": "github" }, "original": { @@ -142,11 +142,11 @@ "cpu-microcodes": "cpu-microcodes" }, "locked": { - "lastModified": 1742827057, - "narHash": "sha256-eRUBUdKGKHxCTPkF6zoQsIKPdu58AkiPU0bxX8nuRoQ=", + "lastModified": 1743266219, + "narHash": "sha256-WLESNfsx1bIw5XMCuBBrPfYikSiT5wstcqutZsx9f1Q=", "owner": "e-tho", "repo": "ucodenix", - "rev": "1e8747f89ed13826cd7698be5a559bdbc50258fe", + "rev": "e84d7dfc23fe10e72669e102be7bb79f6ecc7252", "type": "github" }, "original": { From 74bdc5cfba755c2e7c1eb45bc7688fe36ba42a0e Mon Sep 17 00:00:00 2001 From: BuyMyMojo Date: Mon, 31 Mar 2025 02:50:12 +1100 Subject: [PATCH 3/5] Add clamav --- nixos/configuration.nix | 1 + nixos/services.nix | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 4ad5162..d9ef14a 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -217,6 +217,7 @@ unstable.dwarfs unrar mpv +pkgs.clamav unstable.waypipe unstable.nix-your-shell diff --git a/nixos/services.nix b/nixos/services.nix index e39667b..86aaa14 100644 --- a/nixos/services.nix +++ b/nixos/services.nix @@ -42,6 +42,18 @@ configDir = "/home/buymymojo/Documents/.config/syncthing"; # Folder for Syncthing's settings and keys }; + clamav = { + daemon.enable = true; + daemon.settings = { + MaxThreads = 16; + }; + updater.enable = true; + updater.interval = "weekly"; + updater.settings = { + CompressLocalDatabase = true; + }; + }; + # services.blocky = { # enable = true; # settings = { From d56a5127ca036b1ecd29e9406f69fabd800e0aad Mon Sep 17 00:00:00 2001 From: BuyMyMojo Date: Mon, 31 Mar 2025 02:50:45 +1100 Subject: [PATCH 4/5] disable microcode sha check --- nixos/hardware-configuration.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/hardware-configuration.nix b/nixos/hardware-configuration.nix index 50f10fe..7a05a03 100644 --- a/nixos/hardware-configuration.nix +++ b/nixos/hardware-configuration.nix @@ -26,7 +26,7 @@ ]; boot.initrd.kernelModules = [ "amdgpu" ]; boot.kernelModules = [ "kvm-amd" ]; - # boot.kernelParams = [ "amdgpu.ppfeaturemask=0xffffffff" ]; + boot.kernelParams = [ "microcode.amd_sha_check=off" ]; boot.extraModulePackages = [ ]; fileSystems."/" = { From c43470c485def4864d1aecd340db5e3c7e537a40 Mon Sep 17 00:00:00 2001 From: BuyMyMojo Date: Mon, 31 Mar 2025 02:51:13 +1100 Subject: [PATCH 5/5] move mpv to unstable to prepare for v40.0 Related merge: https://github.com/NixOS/nixpkgs/pull/393399 https://web.archive.org/web/20250330154941/https://github.com/NixOS/nixpkgs/pull/393399 --- nixos/configuration.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/configuration.nix b/nixos/configuration.nix index d9ef14a..a9d31be 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -216,8 +216,8 @@ nixfmt-rfc-style unstable.dwarfs unrar - mpv -pkgs.clamav + unstable.mpv + pkgs.clamav unstable.waypipe unstable.nix-your-shell