Use lib function to patch intray
This commit is contained in:
parent
5137a29a3a
commit
97f690462c
|
@ -14,12 +14,11 @@ in
|
||||||
({ lib, pkgs, config, ... }:
|
({ lib, pkgs, config, ... }:
|
||||||
# NOTE: using `pkgs.system` before `module.options` is evaluated
|
# NOTE: using `pkgs.system` before `module.options` is evaluated
|
||||||
# leads to infinite recursion!
|
# leads to infinite recursion!
|
||||||
let
|
let m = inputs.intray.nixosModules.x86_64-linux.default { inherit lib pkgs config; };
|
||||||
m = inputs.intray.nixosModules.x86_64-linux.default { inherit lib pkgs config; };
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
inherit (m) options;
|
inherit (m) options;
|
||||||
config = lib.mkIf config.services.intray.production.enable { systemd = (lib.traceVal m).config.systemd; };
|
config = lib.removeAttrs m.config [ "networking" "services" ];
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
# }}}
|
# }}}
|
||||||
|
|
Loading…
Reference in a new issue