Skip to content

Commit 169b271

Browse files
committed
proper use of builtins.listToAttrs
1 parent 90593f0 commit 169b271

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

flake.nix

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,13 @@
5757

5858
config = mkIf cfg.enable {
5959
home.packages = [cfg.package];
60-
home.file = {".config/posting/config.yaml".text = builtins.toJSON cfg.settings;} // builtins.listToAttrs (map (theme: {".local/share/posting/themes/${theme.name}.yaml".text = builtins.toJSON theme;}) cfg.themes);
60+
home.file =
61+
{".config/posting/config.yaml".text = builtins.toJSON cfg.settings;}
62+
// builtins.listToAttrs (map (theme: {
63+
name = ".local/share/posting/themes/${theme.name}.yaml";
64+
value = {text = builtins.toJSON theme;};
65+
})
66+
cfg.themes);
6167
nixpkgs.overlays = [flake.overlays.default];
6268
};
6369
};

0 commit comments

Comments
 (0)