From 66e96e2960d4c61d3e1f7f7c287076d861f09220 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Fri, 6 Sep 2024 20:45:10 -0500 Subject: [PATCH 1/2] Fix audiobookshelf, add aria2 as a system package --- nixos/beefcake.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/nixos/beefcake.nix b/nixos/beefcake.nix index 5d21347..81531dc 100644 --- a/nixos/beefcake.nix +++ b/nixos/beefcake.nix @@ -1416,13 +1416,24 @@ sudo nix run nixpkgs#ipmitool -- raw 0x30 0x30 0x02 0xff 0x00 }; }; }; + users.groups.audiobookshelf = {}; + users.users.audiobookshelf = { + isSystemUser = true; + group = "audiobookshelf"; + }; services.audiobookshelf = { enable = true; dataDir = "/storage/audiobookshelf"; port = 8523; }; + systemd.services.audiobookshelf.serviceConfig = { + WorkingDirectory = lib.mkForce config.services.audiobookshelf.dataDir; + StateDirectory = lib.mkForce config.services.audiobookshelf.dataDir; + Group = "audiobookshelf"; + User = "audiobookshelf"; + }; services.caddy.virtualHosts."audio.lyte.dev" = { - extraConfig = ''reverse_proxy :8523''; + extraConfig = ''reverse_proxy :${toString config.services.audiobookshelf.port}''; }; } ]; @@ -1440,6 +1451,7 @@ sudo nix run nixpkgs#ipmitool -- raw 0x30 0x30 0x02 0xff 0x00 # TODO: declarative directory quotas? for storage/$USER and /home/$USER environment.systemPackages = with pkgs; [ + aria2 restic btrfs-progs zfs From 0ff4336088ddb7143ddc50becfc42ac8fd859073 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Sat, 7 Sep 2024 06:35:31 -0500 Subject: [PATCH 2/2] Fix nix flake check failing --- nixos/router.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/router.nix b/nixos/router.nix index fdd730e..447c9d4 100644 --- a/nixos/router.nix +++ b/nixos/router.nix @@ -337,7 +337,7 @@ in { ConfigureWithoutCarrier = true; # IPv6AcceptRA = false; IPv6SendRA = true; - DHCPv6PrefixDelegation = true; + DHCPPrefixDelegation = true; }; };