diff options
Diffstat (limited to 'user-profiles/feeds')
-rw-r--r-- | user-profiles/feeds/default.nix | 12 |
1 files changed, 11 insertions, 1 deletions
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 @@ | |||
1 | { config, flakeInputs, userName, pkgs, ... }: | 1 | { config, flakeInputs, userName, pkgs, lib, ... }: |
2 | |||
3 | with lib; | ||
4 | |||
2 | let | 5 | let |
6 | cfg = config.home-manager.users.${userName}; | ||
7 | inherit (flakeInputs.home-manager.lib) hm; | ||
8 | |||
3 | imm = flakeInputs.imm.defaultPackage.${config.nixpkgs.system}; | 9 | imm = flakeInputs.imm.defaultPackage.${config.nixpkgs.system}; |
4 | in { | 10 | in { |
5 | config.home-manager.users.${userName} = { | 11 | config.home-manager.users.${userName} = { |
6 | home.packages = [ imm ]; | 12 | home.packages = [ imm ]; |
13 | |||
14 | home.activation.createImm = hm.dag.entryAfter ["writeBoundary"] '' | ||
15 | $DRY_RUN_CMD mkdir -p $VERBOSE_ARG ${cfg.xdg.configHome}/imm | ||
16 | ''; | ||
7 | }; | 17 | }; |
8 | } | 18 | } |