home-manager/modules
Josh Robson Chase 7c8bf29df3 generators.toKDL: support repeated nodes, break JiK compat
Replaces the list attr -> KDL conversion logic with a more flexible approach,
allowing for multiple nodes with the same name in a scope. This unfortunately
also breaks the existing JSON-in-KDL semantics in favor of ergonomics. As far
as I can tell though, zellij is the only program using it, and it doesn't accept
JiK anyway.

For example, the following KDL was previously impossible to generate, since nix
attrs were mapped 1:1 to KDL nodes:
```
resize {
	bind "k" "Up" { Resize "Increase Up"; }
	bind "j" "Down" { Resize "Increase Down"; }
}
```

Now, this can be achieved with the nix expression:

```
resize.bind = [
	{ _args = ["k" "Up"]; Resize = "Increase Up"; }
	{ _args = ["j" "Down"]; Resize = "Increase Down"; }
];
```

which would previously have generated the not-very-useful:

```
resize {
	bind {
		- "k" "Up" { Resize "Increase Up"; }
		- "j" "Down" { Resize "Increase Down"; }
	}
}
```

which, in turn, can now be generated via:

```
resize.bind."-" = [
	{ _args = ["k" "Up"]; Resize = "Increase Up"; }
	{ _args = ["j" "Down"]; Resize = "Increase Down"; }
];
```
2024-04-15 08:42:12 -04:00
..
accounts vdirsyncer: add urlCommand and userNameCommand options 2024-03-22 16:56:17 +01:00
config home-cursor: fix typo in XDG data directory link 2023-11-07 09:21:58 +01:00
files home-manager: extract inline shell script to file 2024-04-06 10:04:27 +02:00
i18n/input-method kime: remove documentation dependency on config 2024-03-18 22:13:07 +01:00
launchd treewide: deprecate DRY_RUN_CMD and DRY_RUN_NULL 2024-01-24 13:36:05 +01:00
lib generators.toKDL: support repeated nodes, break JiK compat 2024-04-15 08:42:12 -04:00
lib-bash home-manager: fix nix-build option -q 2024-03-22 19:46:20 +01:00
misc bun: add module 2024-04-09 20:48:15 +02:00
po Translate using Weblate (Norwegian Bokmål) 2024-04-02 23:39:15 +02:00
programs k9s: configuration files in Darwin without XDG 2024-04-14 23:48:01 +02:00
services espanso: enable module on darwin 2024-04-15 09:40:27 +02:00
targets targets/generic-linux: use xdg path for defexpr 2024-03-09 13:43:12 +01:00
default.nix home-manager: add extendModules attribute 2024-01-25 23:24:36 +01:00
files.nix home-manager: extract inline shell script to file 2024-04-06 10:04:27 +02:00
home-environment.nix home-environment: fix formatting 2024-03-28 12:33:23 +01:00
manual.nix docs: add style sheets and scrubDerivations 2024-02-01 01:10:58 +01:00
modules.nix bun: add module 2024-04-09 20:48:15 +02:00
systemd-activate.rb Revert "systemd: use sd-switch" 2020-08-04 19:38:14 +02:00
systemd-activate.sh home-manager: remove the export of run 2024-01-28 10:53:09 +01:00
systemd.nix systemd: avoid creating an empty user.conf 2023-11-11 00:51:53 +01:00
xresources.nix treewide: remove now-redundant lib.mdDoc calls 2023-07-17 18:49:09 +01:00
xsession.nix xsession: allow xplugd to restart on failure 2024-01-16 08:07:00 +01:00