summaryrefslogtreecommitdiff
path: root/user-profiles/feeds/default.nix
blob: cfecf17e16b39c1b346dd396a710f64c552298ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ 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
    '';
  };
}