From 51bdedf26cc0989d54bb5d13b4695379b6549383 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Tue, 17 Dec 2024 18:50:42 +0800 Subject: [PATCH] hosts/ni/services/download-media: update service config and re-enable it --- configs/nixos/ni/default.nix | 1 + .../ni/modules/services/download-media/default.nix | 14 ++++++-------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/configs/nixos/ni/default.nix b/configs/nixos/ni/default.nix index c79505ac..e89aeacf 100644 --- a/configs/nixos/ni/default.nix +++ b/configs/nixos/ni/default.nix @@ -21,6 +21,7 @@ services.monitoring.enable = true; services.mail-archive.enable = true; services.reverse-proxy.enable = true; + services.download-media.enable = true; setups = { desktop.enable = true; development.enable = true; diff --git a/configs/nixos/ni/modules/services/download-media/default.nix b/configs/nixos/ni/modules/services/download-media/default.nix index 4006b192..70cbcd8d 100644 --- a/configs/nixos/ni/modules/services/download-media/default.nix +++ b/configs/nixos/ni/modules/services/download-media/default.nix @@ -1,9 +1,10 @@ { config, lib, pkgs, foodogsquaredLib, ... }: let + inherit (foodogsquaredLib.sops-nix) getSecrets attachSopsPathPrefix; hostCfg = config.hosts.ni; cfg = hostCfg.services.download-media; - mountName = "/mnt/archives"; + mountName = "/media/laptop-ssd/Archives"; deviantArt = name: "https://deviantart.com/${name}"; artStation = name: "https://www.artstation.com/${name}"; @@ -97,16 +98,11 @@ in lib.listToAttrs jobsList; in { - sops.secrets = foodogsquaredLib.sops-nix.getSecrets ./secrets.yaml - (lib.attachSopsPathPrefix pathPrefix { + sops.secrets = getSecrets ./secrets.yaml + (attachSopsPathPrefix pathPrefix { "secrets-config" = { }; }); - # This is to make an exception for Archivebox. - nixpkgs.config.permittedInsecurePackages = [ - "python3.12-django-3.1.14" - ]; - suites.filesystem.setups.archive.enable = true; services.yt-dlp = { @@ -211,6 +207,8 @@ in prependArgs = galleryDlArgs; }; }; + + environment.systemPackages = with pkgs; [ archivebox ]; } ); }