nix-config/modules
Donovan Glover 59f557a3e5
feat: Pass nix-config as self to avoid infinite recursion
This change makes it possible to use this nix-config in all the
different ways imaginable (containers, bare metal, tests, and as a
separate flake input) *without* running into infinite recursion
issues with self.

It does this by using a trick similar to JavaScript in which
`var self = this;`, thus enabling the usage of "this" (or self, in
Nix's case) where it wouldn't otherwise be possible.

Note that this *only* works if the input for this repository is named
nix-config. This makes it impractical to combine with multiple
configurations that employ the same strategy.
2024-04-05 10:20:06 -04:00
..
containers.nix feat: Pass nix-config as self to avoid infinite recursion 2024-04-05 10:20:06 -04:00
desktop.nix feat: Pass nix-config as self to avoid infinite recursion 2024-04-05 10:20:06 -04:00
dual-function-keys.nix nix: Use lib.singleton where possible 2024-04-02 18:53:56 -04:00
hardware.nix meta: Use mkIf for hardware-specific config 2024-04-04 00:25:08 -04:00
networking.nix chore: Replace lib.types.string with str 2024-04-04 07:58:32 -04:00
packages.nix meta: Continue modularizing packages 2024-04-04 20:03:31 -04:00
shell.nix meta: Continue modularizing packages 2024-04-04 20:03:31 -04:00
specializations.nix specializations: Make opt-in with mkEnableOption 2024-04-03 02:46:42 -04:00
system.nix feat: Pass nix-config as self to avoid infinite recursion 2024-04-05 10:20:06 -04:00
virtualization.nix virtualization: Decrease memory size from 8GB to 4GB 2024-03-05 19:26:12 -05:00