nixpkgs/nixos/modules/misc
Jade Lovelace e456032add nixos/flake: put nixpkgs in NIX_PATH and system registry for flake configs
Currently there are a bunch of really wacky hacks required to get nixpkgs
path correctly set up under flake configs such that `nix run
nixpkgs#hello` and `nix run -f '<nixpkgs>' hello` hit the nixpkgs that
the system was built with. In particular you have to use specialArgs or
an anonymous module, and everyone has to include this hack in their
own configs.

We can do this for users automatically.

I have tested these manually with a basic config; I don't know if it is
even possible to write a nixos test for it since you can't really get a
string-with-context to yourself unless you are in a flake context.
2024-02-03 20:44:38 -08:00
..
documentation nixos/*: md-convert hidden plaintext options 2022-08-31 16:32:54 +02:00
nixpkgs nixosModules.pkgsReadOnly: init 2023-05-10 15:55:09 +02:00
assertions.nix nixos/*: convert internal option descriptions to MD 2022-08-31 16:32:54 +02:00
crashdump.nix treewide: automatically md-convert option descriptions 2022-07-30 15:16:34 +02:00
documentation.nix nixos/doc: avoid bash argument list size limit 2023-12-31 18:08:46 +01:00
extra-arguments.nix
ids.nix nixos/hound: adopt, rework, cleanup (#268983) 2023-12-05 15:59:26 +01:00
label.nix nixos: fix typos 2022-12-17 19:31:14 -05:00
lib.nix treewide: automatically md-convert option descriptions 2022-07-30 15:16:34 +02:00
locate.nix treewide: use mkPackageOption 2023-11-27 01:28:36 +01:00
man-db.nix nixos/documentation.man.mandb: Add skipPackages option, and include nixos-version 2023-01-16 22:24:02 +01:00
mandoc.nix nixos/mandoc: don't create leading double slashes in MANPATH 2023-12-24 18:44:36 +01:00
meta.nix nixos/manual: render module chapters with nixos-render-docs 2023-01-27 20:07:34 +01:00
nixops-autoluks.nix nixos: fix bad mkEnableOption descriptions 2023-10-20 16:22:40 +01:00
nixpkgs-flake.nix nixos/flake: put nixpkgs in NIX_PATH and system registry for flake configs 2024-02-03 20:44:38 -08:00
nixpkgs.nix nixos/nixpkgs.nix: use less confusing example systems 2023-10-25 08:33:14 +00:00
passthru.nix nixos/*: convert internal option descriptions to MD 2022-08-31 16:32:54 +02:00
version.nix Revert "23.11 beta release" 2023-11-22 22:39:48 +02:00
wordlist.nix nixos/*: automatically convert option descriptions 2022-08-31 16:32:53 +02:00