Commit Graph

1211 Commits

Author SHA1 Message Date
github-actions[bot]
63eeb8a47c Merge staging-next into staging 2024-12-15 12:06:02 +00:00
Jörg Thalheim
25d88c50b6 nixVersions.nix_2_24: 2.24.10 -> 2.24.11 (#364176) 2024-12-15 11:53:35 +01:00
Wolfgang Walther
b3fb9afdb0 replaceVarsWith: init (#360771) 2024-12-14 20:26:35 +01:00
Wolfgang Walther
4ce241c882 replaceVarsWith: init
Takes the extended features of nix substituteAll to a replaceVars
variant to get rid of those cases that use substituteAll to build a full
package with meta information etc.
2024-12-14 20:16:10 +01:00
jopejoe1
dfd7b67092 nixos: add option hardware.enableAllHardware (#364479) 2024-12-14 00:03:52 +00:00
Arne Keller
206675f0e3 nixos/sd-card: explicitly set core_freq for Raspberry Pi 3 (#306724) 2024-12-13 10:35:33 +01:00
Thiago Kenji Okada
0d2883adc2 nixos-rebuild-ng: add module changes and port tests from nixos-rebuild (#363922) 2024-12-12 12:40:40 +00:00
DavHau
08783a39b0 nixos: add option hardware.enableAllHardware
This allows users to simply enable support for all hardware by enabling the option `hardware.enableAllHardware`, instead of having to import `modules/profiles/all-hardware.nix`.

This is better, as the enableAllHardware option will be discoverable via search.nixos.org, while the `all-hardware.nix` is hidden inside nixpkgs and hard to discover.

Backward compatibility is provided by replacing the old `profiles/all-hardware.nix` with a file that sets the `enableAllHardware` option to true.
2024-12-12 16:45:25 +07:00
zowoq
6c706f9549 nixos/nix-fallback-paths: 2.24.10 -> 2.24.11
https://releases.nixos.org/nix/nix-2.24.11/fallback-paths.nix
2024-12-11 18:15:24 +10:00
Silvan Mosberger
4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
Thiago Kenji Okada
43e6aa5bd2 nixos-rebuild-ng: enable reexec if system.rebuild.enableNg is enabled 2024-12-10 18:38:08 +00:00
Thiago Kenji Okada
ae6664cc51 nixos/tools: add system.rebuild.enableNg 2024-12-10 18:38:08 +00:00
Jörg Thalheim
6541fe7311 nixos/installer: Allow setting a password on cmdline for pxe boot (#358722) 2024-12-05 00:33:39 +01:00
Michele Guerini Rocco
c7a4e4c503 sd-image: fix raspberry pi 0 boot (#355469) 2024-12-01 17:42:24 +01:00
misuzu
2a1bf498aa nixos/installation-cd-base: add git & rsync (#325511) 2024-12-01 16:35:33 +02:00
Flo
f5080d12b3 Rebuild password update functionality, add tests 2024-11-28 13:47:45 +01:00
Jonathan Ringer
b5168a9900 nixos/iso-image: fix isoImage.grubTheme = null;
Fixes `error: cannot coerce null to a string`
2024-11-26 21:18:21 +02:00
Will Fancher
80ec892b74 Revert "nixos/iso-image: fix isoImage.grubTheme = null; logic" 2024-11-26 07:56:33 -05:00
Artturin
fa4b9638fa nixos/iso-image: fix isoImage.grubTheme = null; logic (#156754) 2024-11-26 00:39:02 +02:00
Flo
9a524549d6 Add passwordHash option 2024-11-24 22:39:56 +01:00
Flo
65dc95e52f feat: Allow setting a password on cmdline for pxe boot 2024-11-24 15:12:14 +01:00
Maximilian Bosch
859c76c505 nixos/tools: add enable options to manual
E.g. when overriding `nix` with `pkgs.lix`, `nixos-option` will fail.
Given that I haven't used it in a very long time, I wanted to disable
it, but finding an option to turn off `nixos-option` is kinda hard given
that the options are generated here using `mkToolModule`.

I assumed that this isn't possible until I learned that
`system.tools.X.enable` exists. To me, this is a clear sign that these
shouldn't be internal.
2024-11-18 16:22:41 +01:00
Michal Kazior
b5a3634ea1 sd-image: fix raspberry pi 0 boot
Raspberry Pi 0 was stuck at rainbow image on hdmi
output and was not booting.

Both dtbs are needed _and_ the enable_uart=1. Any
of them missing leaves RPI0 stuck at the rainbow
image.
2024-11-12 17:38:58 +01:00
K900
4a2c7def57 nixos/tools: Make the tools derivations overridable (#353173) 2024-11-09 10:20:19 +03:00
Emily
ff5fea0a29 nixos/{demo,installer/virtualbox-demo}: drop
This is no longer referenced anywhere and so will inevitably bitrot,
and doesn’t do anything that isn’t simple to achieve with the
module documentation.
2024-11-07 23:41:51 +00:00
Jörg Thalheim
caa10b055f nix: update fallback paths automatically 2024-11-04 11:51:24 +01:00
r-vdp
2eb92f4063 fixup! nixos/tools: set the enable options with mkDefault 2024-11-02 19:03:29 +01:00
r-vdp
ba3e5b02f6 nixos/tools: set the enable options with mkDefault
This makes it easier to enable some of them again.
2024-11-02 18:19:57 +01:00
r-vdp
8b2577c7d5 nixos/tools: Make the tools derivations overridable
Make sure that when re-assigning an overridden derivation to system.build.*,
the overridden derivation is also the one that ends up in
environment.systemPackages.
2024-11-02 18:17:24 +01:00
ibbem
30f40ac177 nixos-generate-config: Use the Firefox module
The Firefox module installs and enables the selected locale whereas the
Firefox package just uses the default locale. Hence, Firefox's language
was still English even when choosing a language other than English.
2024-10-31 19:30:08 +01:00
zowoq
a87bc99783 nixos/nix-fallback-paths: 2.24.8 -> 2.24.9
https://releases.nixos.org/nix/nix-2.24.9/fallback-paths.nix
2024-10-14 13:00:57 +10:00
github-actions[bot]
e26f69eb82 Merge master into staging-next 2024-10-11 06:04:46 +00:00
Emily
50c2aef3e7 nixos/netboot: Compress squashfs with zstd 19 (#341422) 2024-10-11 05:11:50 +01:00
github-actions[bot]
192fd67cc3 Merge master into staging-next 2024-10-03 18:04:30 +00:00
Peder Bergebakken Sundt
3100acba08 treewide: \xc2\xa0 ->
I have no idea what this escape sequence even is, but it breaks the nix parser with cryptic errors if not used in a comment.
A friend let me know MacOS is prone to input weird spaces, not sure if that is the source.

Candidates were located and created with:

    chr="$(echo -e '\xc2\xa0')"; rg -F "$chr" -l | xe sd -F "$chr" " "

There are some examples left, most being example output from `tree` in various markdown documents, some patches which we can't really touch, and `pkgs/tools/nix/nixos-render-docs/src/tests/test_commonmark.py` which I'm not sure if should be addressed
2024-10-02 15:33:06 +02:00
Jörg Thalheim
e5a08c8859 nix-fallback-paths: 2.24.7 -> 2.24.8 2024-09-26 21:04:57 +02:00
seth
0aed7f0d24 nixVersions.nix_2_18: 2.18.7 -> 2.18.8
Diff: https://github.com/NixOS/nix/compare/2.18.7...2.18.8
Fixes https://github.com/NixOS/nix/security/advisories/GHSA-6fjr-mq49-mm2c
2024-09-26 20:53:55 +02:00
github-actions[bot]
c8c18095f9 Merge master into staging-next 2024-09-26 18:04:33 +00:00
Franz Pletz
aa79f54998 nixos/iso-image: avoid collision between GRUB2 versions (#343992) 2024-09-26 15:53:43 +02:00
github-actions[bot]
bcd5388d39 Merge master into staging-next 2024-09-24 12:05:12 +00:00
K900
e9a78e0285 nixos/installer/tools: only enable tools if nix is enabled
This restores the old behavior of being able to remove
everything nix-related with just `nix.enable = false`.

Fixes #344083.
2024-09-24 08:19:36 +03:00
Luflosi
d979b45371 nixos/iso-image: avoid collision between GRUB2 versions
4b836fb680 added `pkgs.grub2_efi` to `environment.systemPackages` so that it would be in the Nix store and available for install. But `pkgs.grub2` is already in the list. This causes the various paths of the two GRUB2 versions to collide. To fix this, put `pkgs.grub2_efi` into `system.extraDependencies` instead. This should achieve the same effect of adding the second GRUB2 version to the Nix store without the paths colliding in the environment.

To reproduce the problem, execute `nix-build nixos -I nixos-config=nixos/modules/installer/cd-dvd/iso-image.nix -A config.system.build.isoImage` and look for messages like
```
warning: collision between `/nix/store/9jk1p9n5dl431lcm4w9p6x6x8a00dm0q-grub-2.12/bin/grub-install' and `/nix/store/809l0i6aydg4zhn3kqf723brjyp2qm8h-grub-2.12/bin/grub-install'
```
2024-09-23 17:59:26 +02:00
github-actions[bot]
ac34133fb9 Merge master into staging-next 2024-09-23 12:05:36 +00:00
Jonas Chevalier
b4dc369186 Fix expandOnBoot=false and rigid path to nix-path-registration (#341071) 2024-09-23 09:59:27 +02:00
Jörg Thalheim
8999c869a8 nix: update nix-fallback-paths 2024-09-22 14:44:27 +02:00
Jörg Thalheim
af7bcfae78 nix: update fallback-paths 2024-09-22 09:11:14 +02:00
Jörg Thalheim
9a94e073bf Reapply "nix: nix_2_18 -> nix_2_24"
This reverts commit b3b9bdd901.
2024-09-22 09:10:01 +02:00
K900
5dcbab6b74 nixos/tools: continue cleanup
- remove with lib
- shuffle some things around for readability
- add separate options for each tool
2024-09-21 16:10:32 +03:00
K900
51b47621ac nixos-install: move to pkgs/by-name 2024-09-20 08:44:37 +03:00
K900
825f6ffa9e nixos-enter: move to pkgs/by-name 2024-09-20 08:44:37 +03:00