From 675436356c928cd11cbed3a7d5bfc5ee9ba858a8 Mon Sep 17 00:00:00 2001 From: uttarayan21 Date: Mon, 4 Aug 2025 11:32:17 +0530 Subject: [PATCH] feat: Disable paperless leaking creds and enable apps for gui devices --- home/apps/default.nix | 2 +- home/apps/orcaslicer.nix | 3 ++- nixos/mirai/services/paperless.nix | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/home/apps/default.nix b/home/apps/default.nix index d6627347..f507a9d7 100644 --- a/home/apps/default.nix +++ b/home/apps/default.nix @@ -3,7 +3,7 @@ device, ... }: -lib.optionalAttrs (device.is "ryu") { +lib.optionalAttrs device.hasGui { imports = [ # ./audacity.nix ./blueman.nix diff --git a/home/apps/orcaslicer.nix b/home/apps/orcaslicer.nix index 0aec42ee..c0f065b1 100644 --- a/home/apps/orcaslicer.nix +++ b/home/apps/orcaslicer.nix @@ -2,6 +2,7 @@ inputs, pkgs, device, + lib, ... }: let pkgs' = pkgs.applyPatches { @@ -11,7 +12,7 @@ }; pkgsPatched = import pkgs' {system = device.system;}; in { - home.packages = [ + home.packages = lib.mkIf device.isLinux [ pkgsPatched.orca-slicer ]; } diff --git a/nixos/mirai/services/paperless.nix b/nixos/mirai/services/paperless.nix index 0d5bad47..3d11fd5d 100644 --- a/nixos/mirai/services/paperless.nix +++ b/nixos/mirai/services/paperless.nix @@ -8,7 +8,7 @@ }; services = { paperless = { - enable = true; + enable = false; passwordFile = config.sops.secrets."paperless/adminpass".path; environmentFile = pkgs.writeText "paperless.env" '' PAPERLESS_ENABLE_HTTP_REMOTE_USER=true