Your one-stop-cake-shop for everything Freshly Baked has to offer

feat: add kavita #102

merged opened by thecoded.prof targeting main from private/coded/push-wotkptsxywxq
Labels

None yet.

requested-reviewers

None yet.

tested-working
rejected

None yet.

assignee

None yet.

Participants 2
AT URI
at://did:plc:t4ifz7bz4cnukxryiqnbgxxr/sh.tangled.repo.pull/3m4fvdrgisy22
+11 -2
Interdiff #2 #3
packetmix/packages/default.nix

This file has not been changed.

packetmix/packages/kavita/change-webroot.diff

This file has not been changed.

packetmix/packages/kavita/change-webroot.diff.license

This file has not been changed.

packetmix/packages/kavita/default.nix

This file has not been changed.

packetmix/packages/kavita/nuget-deps.json

This file has not been changed.

packetmix/packages/kavita/nuget-deps.json.license

This file has not been changed.

packetmix/systems/teal/copyparty.nix

This file has not been changed.

+11 -2
packetmix/systems/teal/kavita.nix
··· 1 # SPDX-FileCopyrightText: 2025 FreshlyBakedCake 2 # 3 # SPDX-License-Identifier: MIT 4 - { project, ... }: 5 { 6 disabledModules = [ "services/web-apps/kavita.nix" ]; 7 imports = [ ··· 17 OpenIdConnectSettings = { 18 Authority = "https://idm.freshly.space/oauth2/openid/kavita"; 19 ClientId = "kavita"; 20 - Secret = builtins.readFile "/secrets/kavita/OIDC_secret"; 21 Enabled = true; 22 CustomScopes = [ 23 "groups" ··· 26 ]; 27 }; 28 }; 29 }; 30 31 services.nginx.enable = true;
··· 1 # SPDX-FileCopyrightText: 2025 FreshlyBakedCake 2 # 3 # SPDX-License-Identifier: MIT 4 + { project, pkgs, config, lib, ... }: 5 { 6 disabledModules = [ "services/web-apps/kavita.nix" ]; 7 imports = [ ··· 17 OpenIdConnectSettings = { 18 Authority = "https://idm.freshly.space/oauth2/openid/kavita"; 19 ClientId = "kavita"; 20 + Secret = "@OIDC_SECRET@"; 21 Enabled = true; 22 CustomScopes = [ 23 "groups" ··· 26 ]; 27 }; 28 }; 29 + }; 30 + 31 + systemd.services.kavita = { 32 + preStart = lib.mkAfter '' 33 + ${pkgs.replace-secret}/bin/replace-secret '@OIDC_SECRET@' \ 34 + ''${CREDENTIALS_DIRECTORY}/oidc_secret \ 35 + '${config.services.kavita.dataDir}/config/appsettings.json' 36 + ''; 37 + serviceConfig.LoadCredential = [ "OIDC_SECRET:/secrets/kavita/OIDC_SECRET" ]; 38 }; 39 40 services.nginx.enable = true;

History

7 rounds 3 comments
sign up or login to add to the discussion
2 commits
expand
feat: add kavita
feat(copyparty): Add folder for kavita library
expand 0 comments
pull request successfully merged
2 commits
expand
feat: add kavita
feat(copyparty): Add folder for kavita library
expand 3 comments

I think this maybe wasn't doing anything in our testing, so we should drop it (from copyparty)

    users.groups."copyparty+kavita".members = [

     

       

      "copyparty"

     

       

      "kavita"

     

       

    ];

     

       



     

       

    clicks.storage.impermanence.persist.directories = [

     

       

      "/var/lib/copyparty"

     

       

      (

     

       

        let

     

       

          mode = "0770";

     

       

          user = "copyparty";

     

       

          group = "copyparty+kavita";

     

       

        in

     

       

        {

     

       

          directory = "/var/lib/copyparty/data/groups/library";

     

       

          inherit mode user group;

     

       

          defaultPerms = {

     

       

            inherit mode user group;

     

       

          };

     

       

        }

     

       

      )

     

       

    ];

otherwise looks good

oh goodness, that codeblock formatting looks real tangled on my screen...

will remove and re push tmrw sometime. Also yea, that's one heck of a code block

2 commits
expand
feat: add kavita
feat(copyparty): Add folder for kavita library
expand 0 comments
2 commits
expand
feat: add kavita
feat(copyparty): Add folder for kavita library
expand 0 comments
2 commits
expand
feat: add kavita
feat(copyparty): Add folder for kavita library
expand 0 comments
2 commits
expand
feat: add kavita
feat(copyparty): Add folder for kavita library
expand 0 comments
2 commits
expand
feat: add kavita
feat(copyparty): Add folder for kavita library
expand 0 comments