diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2021-09-04 20:24:16 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2021-09-04 20:24:16 +0200 |
commit | 2a7280335e2d290ea96c795dbb5bbc12cdd8061b (patch) | |
tree | 073f44421e57a15d92540f9262de6332deb63083 /user-profiles/feeds | |
parent | 8ff2400d4a33c2164a8327880a9402a93f2fb4d7 (diff) | |
download | nixos-2a7280335e2d290ea96c795dbb5bbc12cdd8061b.tar nixos-2a7280335e2d290ea96c795dbb5bbc12cdd8061b.tar.gz nixos-2a7280335e2d290ea96c795dbb5bbc12cdd8061b.tar.bz2 nixos-2a7280335e2d290ea96c795dbb5bbc12cdd8061b.tar.xz nixos-2a7280335e2d290ea96c795dbb5bbc12cdd8061b.zip |
feeds: create imm config dir
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 | } |