| Commit message (Collapse) | Author | Age |
|
|
|
| |
isNull "is deprecated; just write e == null instead" says the Nix manual
|
|\
| |
| | |
nixos: fix system-tarball
|
| | |
|
|/ |
|
|\
| |
| | |
nixos-build-vms: pass `--option` to `nix-build`
|
| |
| |
| |
| |
| |
| |
| | |
Also simplified the argument parsing to write all currently supported
CLI options into a bash array and pass this to `nix-build`.
Also documented `--option` usage in the corresponding manpage.
|
| |
| |
| |
| |
| | |
This reverts commit bb32e322a5aa81203eb3494081539eea8a70adcb, reversing
changes made to e0b4356c0dc7d35d9ee17d23b53d8c2020d4e618.
|
|\ \
| | |
| | | |
iso-image: make reproducible by not relying on mcopy's readdir
|
| | | |
|
|\ \ \
| | | |
| | | | |
syslinux: change serial bit rate to 115200
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Prior to this commit an installation over serial via syslinux would
involve:
1. setting bitrate to BIOS's bitrate (typically 115200)
2. setting bitrate to syslinux's bitrate (38400)
3. setting bitrate to stty's bitrate (115200)
By changing syslinux's bitrate to 115200, an installation over serial
is a smoother experience, and consistent with the GRUB2 installation
which is also 115200 bps.
[root@nixos:~]# stty
speed 115200 baud; line = 0;
-brkint ixoff iutf8
-iexten
In a future commit I will add default serial terminals to the syslinux
kernel lines.
|
|\ \ \ \
| |/ / /
|/| | | |
grub: Support 32bit EFI on 64bit platforms
|
| | | | |
|
| | | |
| | | |
| | | | |
This is undefined in the default configuration.nix template.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
If setting a root password using the `passwd` call in the
`nixos-install` script fails, it should be explained how set it manually
to ensure that nobody gets accidentally locked out of the system.
|
|\ \ \ \
| |_|/ /
|/| | | |
nixos-rebuild: try to get Nix fallback from new channel first
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
If our old Nix can’t evaluate the Nixpkgs channel, try the fallback
from the new channel /first/. That way we can upgrade Nix to a newer
version and support breaking changes to Nix (like seen in the upgrade
o Nix 2.0).
This change should be backported to older NixOS versions!
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
installer: Enable pulseaudio in all graphical iso's
|
| |/ / / |
|
|/ / / |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This hasn't been needed for a long time, even when `mutableUsers =
false`. Setting a uid manually is potentially risky since it could
collide with non-declarative user accounts. (We do check for
collisions between declarative accounts.)
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
'./*' produces arguments ordered by inode.
efiDir produces, reliably, ./EFI, so just make all the directories
known explicitly.
|
| |/
|/|
| |
| | |
in the name (#50234)
|
|\ \
| |/
|/| |
nixos-generate-config: Include extraGroups "wheel"
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
I've been asked, on numerous occasions, by my students and others, how
to 'sudo' on NixOS.
Of course new users could read up in the manual on how to do that, or we
could make it more accessible for them by simply making it visible in
the default `configuration.nix` file.
Additionally, as raised in [1], replacing `guest` with something more
recognizable could be potentially beneficial to new users. I've
opted for `jane` for now.
[1]: https://github.com/NixOS/nixpkgs/pull/54519#issuecomment-457012223
|
|\ \
| |/
|/| |
nixos-option: don't abort with shell failures if options are not existant
|
| |
| |
| | |
It doesn't work good with double-click selection in terminal (it gets into selection buffer of some terminals)
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
`nixos-option` basically handles two cases: the given option is either a
valid option defined using `mkOption` or an attribute set which contains
a set of options.
If none of the above cases is valid, `$1` is invalid. Unfortunatley the
script interpreted invalid options as an attribute set which rendered
shell failures when trying to evaluate the arguments.
First of all, `if names=$(attrNames ...)` resulted in `<PRIMOP>` as
`attrNames` simply evaluated `builtins.attrNames $result` which results
in a non-applied function with `$result` being empty. Trying to map over
this string using `nixMap` while applying `escapeQuotes` causes the bash
error as `eval echo "<PRIMOP>"` is invalid syntax.
Explicitly checking if `$result' contains a value (do we have an
attribute set?) and otherwise returning a warning and asking if $option
exists fixes the problem.
Fixes #48060
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
There are situations where several filesystems reside on a single encrypted LUKS
device (e.g. when using BTRFS subvolumes).
Simply generating a `boot.init.luks.devices.NAME.device` entry for each mounted
filesystem will result in an error later when evaluating the nix expression in
`hardware-configuration.nix`.
|
|\ \
| | |
| | | |
nixos-rebuild: allow to override builders
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Since nix 2.0 the no-build-hook option was replaced by the builders options
that allows to override remote builders ad-hoc.
Since it is useful to disable remote builders updating nixos without network,
this commit reintroduces the option.
|
|\ \ \
| | | |
| | | |
| | | | |
A couple thousand rebuilds have accumulated on master.
|
| |/ / |
|
|\| | |
|
| |\ \
| | | |
| | | | |
make-disk-image: use filterSource instead of cleanSource
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
cleanSource does not appear to work correctly in this case. The path
does not get coerced to a string, resulting in a dangling symlink
produced in channel.nix. Not sure why, but this
seems to fix it.
Fixes #51025.
/cc @elvishjericco
|
|\| | | |
|
| |\ \ \ |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This PR temporarily fixes the issue with PR 53041 as explained
here:
https://github.com/NixOS/nixpkgs/pull/53041#commitcomment-31825338
The alias `powerManagement.cpufreq.governor` to
`powerManagement.cpuFreqGovernor` has been removed.
|
| |\| | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
sd-image-raspberrypi, sd-image-aarch64, and
sd-image-armv7l-multiplatform can all be cross compiled now.
|
| | | | | |
|
|\ \ \ \ \
| |/ / / /
|/| / / /
| |/ / / |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This adds a NixOS option for setting the CPU max and min frequencies
with `cpufreq`. The two options that have been added are:
- `powerManagement.cpufreq.max`
- `powerManagement.cpufreq.min`
It also adds an alias to the `powerManagement.cpuFreqGovernor` option as
`powerManagement.cpufreq.governor`. This updates the installer to use
the new option name. It also updates the manual with a note about
the new name.
|
|\| | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This, paired with the previous commit, ensures the channel won't be held
back from a kernel upgrade and a non-building sd image, while still
having a new-kernel variant available.
|
| | | | |
|
|\| | | |
|
| |/ / |
|