From 97f690462c83980cd5bfeb32b858028a632ef90f Mon Sep 17 00:00:00 2001 From: Matei Adriel Date: Fri, 2 Feb 2024 03:04:02 +0100 Subject: [PATCH] Use lib function to patch intray --- hosts/nixos/lapetus/services/intray.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/hosts/nixos/lapetus/services/intray.nix b/hosts/nixos/lapetus/services/intray.nix index 8283e54..b7f7d40 100644 --- a/hosts/nixos/lapetus/services/intray.nix +++ b/hosts/nixos/lapetus/services/intray.nix @@ -14,12 +14,11 @@ in ({ lib, pkgs, config, ... }: # NOTE: using `pkgs.system` before `module.options` is evaluated # leads to infinite recursion! - let - m = inputs.intray.nixosModules.x86_64-linux.default { inherit lib pkgs config; }; + let m = inputs.intray.nixosModules.x86_64-linux.default { inherit lib pkgs config; }; in { inherit (m) options; - config = lib.mkIf config.services.intray.production.enable { systemd = (lib.traceVal m).config.systemd; }; + config = lib.removeAttrs m.config [ "networking" "services" ]; }) ]; # }}}