From 2a7280335e2d290ea96c795dbb5bbc12cdd8061b Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sat, 4 Sep 2021 20:24:16 +0200 Subject: feeds: create imm config dir --- user-profiles/feeds/default.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'user-profiles') diff --git a/user-profiles/feeds/default.nix b/user-profiles/feeds/default.nix index 67a6d969..cfecf17e 100644 --- a/user-profiles/feeds/default.nix +++ b/user-profiles/feeds/default.nix @@ -1,8 +1,18 @@ -{ config, flakeInputs, userName, pkgs, ... }: +{ 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 + ''; }; } -- cgit v1.2.3