summaryrefslogtreecommitdiff
path: root/user-profiles
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2021-09-04 20:24:16 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2021-09-04 20:24:16 +0200
commit2a7280335e2d290ea96c795dbb5bbc12cdd8061b (patch)
tree073f44421e57a15d92540f9262de6332deb63083 /user-profiles
parent8ff2400d4a33c2164a8327880a9402a93f2fb4d7 (diff)
downloadnixos-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')
-rw-r--r--user-profiles/feeds/default.nix12
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
3with lib;
4
2let 5let
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};
4in { 10in {
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}