From 09d82350943286abc4a0b66c84287eb30a4b6f43 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sat, 4 Sep 2021 21:52:24 +0200 Subject: feeds: imm-notmuch-insert --- user-profiles/feeds/default.nix | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) (limited to 'user-profiles/feeds/default.nix') diff --git a/user-profiles/feeds/default.nix b/user-profiles/feeds/default.nix index cfecf17e..82be90c7 100644 --- a/user-profiles/feeds/default.nix +++ b/user-profiles/feeds/default.nix @@ -1,18 +1,11 @@ -{ config, flakeInputs, userName, pkgs, lib, ... }: - -with lib; - -let - cfg = config.home-manager.users.${userName}; - inherit (flakeInputs.home-manager.lib) hm; - - imm = flakeInputs.imm.defaultPackage.${config.nixpkgs.system}; -in { - config.home-manager.users.${userName} = { - home.packages = [ imm ]; - - home.activation.createImm = hm.dag.entryAfter ["writeBoundary"] '' - $DRY_RUN_CMD mkdir -p $VERBOSE_ARG ${cfg.xdg.configHome}/imm - ''; +{ config, flakeInputs, pkgs, lib, userName, customUtils, ... }: +{ + home-manager.users.${userName} = {...}: { + imports = [ + (customUtils.overrideModuleArgs + (import ./module.nix) + (inputs: inputs // { inherit flakeInputs; inherit (config.nixpkgs) system; }) + ) + ]; }; } -- cgit v1.2.3