| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| | |
nixos: improve the example that shows how to include nvidia_x11 in boot.extraModulePackages
|
| |
| |
| |
| |
| |
| | |
boot.extraModulePackages
Fixes https://github.com/NixOS/nixpkgs/issues/68931.
|
|/
|
|
|
|
|
|
| |
The new systemd in 19.09 gives an "Access Denied" error when doing
"systemctl daemon-reexec" on an 19.03 system. The fix is to use the
previous systemctl to signal the daemon to re-exec itself. This
ensures that users don't have to reboot when upgrading from NixOS
19.03 to 19.09.
|
| |
|
|\ |
|
| |
| |
| |
| |
| |
| | |
And replace them with a more appropriate type
Also fix up some minor module problems along the way
|
|\| |
|
| |\
| | |
| | | |
nixos/systemd: Add suspend-then-hibernate units
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Pretty useful for laptops. I use them with:
```
services.logind.lidSwitch = "suspend-then-hibernate";
environment.etc."systemd/sleep.conf".text = "HibernateDelaySec=8h";
```
|
|\| | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
If this is the default for OpenShift already, we probably can enable it
as well.
see https://github.com/openshift/machine-config-operator/pull/581
|
| | | |
|
| |/
| |
| |
| |
| | |
systemd defaults DefaultMemoryAccounting and DefaultTasksAccounting to
yes, so no need to enable explicitly
|
| |
| |
| |
| | |
(cherry picked from commit ec073e41a0dc8273cd81cf61fa37004310120af2)
|
| | |
|
| |\
| | |
| | |
| | |
| | |
| | | |
boot.kernelPackages: check for conflicts
It's currently possible to set conflicting `boot.kernelPackages` several times.
Nixos now warns when this is the case instead of just picking one.
|
| | |
| | |
| | |
| | |
| | |
| | | |
It's currently possible to set conflicting `boot.kernelPackages` several times
which can prove confusing.
This is an attempt to warn for this.
|
| | |
| | |
| | |
| | |
| | |
| | | |
* Read one char at a time, so user doesn't have to enter "i<ENTER>"
contrary to the menu;
* Exec shell inside setsid.
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
systemd provides two sysctl snippets, 50-coredump.conf and
50-default.conf.
These enable:
- Loose reverse path filtering
- Source route filtering
- `fq_codel` as a packet scheduler (this helps to fight bufferbloat)
This also configures the kernel to pass coredumps to `systemd-coredump`.
These sysctl snippets can be found in `/etc/sysctl.d/50-*.conf`,
and overridden via `boot.kernel.sysctl`
(which will place the parameters in `/etc/sysctl.d/60-nixos.conf`.
Let's start using these, like other distros already do for quite some
time, and remove those duplicate `boot.kernel.sysctl` options we
previously did set.
In the case of rp_filter (which systemd would set to 2 (loose)), make
our overrides to "1" more explicit.
|
| |\ \ |
|
| |\ \ \
| | | |/
| | |/| |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
See `forEach`-introduction commit.
```
rg 'flip map ' --files-with-matches | xargs sed -i 's/flip map /forEach /g'
```
|
| | | |
| | | |
| | | |
| | | | |
This reverts commit 3b0534310c89d04fc3a9c5714b5a4d0f9fb0efca.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
See `foreach`-introduction commit.
```
rg 'flip map ' --files-with-matches | xargs sed -i 's/flip map /foreach /g'
```
|
| |_|/
|/| | |
|
|\ \ \ |
|
| |\ \ \
| | | | |
| | | | | |
nixos/hardware.deviceTree: new module
|
| | | |/
| | |/|
| | | |
| | | |
| | | |
| | | | |
Add support for custom device-tree files, and applying overlays to them.
This is useful for supporting non-discoverable hardware, such as sensors
attached to GPIO pins on a Raspberry Pi.
|
| | | | |
|
|\| | | |
|
| |\ \ \
| | | | |
| | | | | |
lib/types: Add oneOf, extension of either to a list of types
|
| | |/ / |
|
| |\ \ \
| | |/ /
| |/| | |
Add binfmt interpreter for wasm
|
| | | | |
|
| | |/
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This adds handling for WASM binaries to binfmtâs emulatedSystems. To
enable, add this to your configuration:
boot.binfmt.emulatedSystems = [ "wasm32-wasi" ];
After rebuilding with nixos-rebuild switch, you can run wasm binaries
directly.
|
| | |
| | |
| | |
| | |
| | | |
Use systemd.packages instead, it's less error prone and more in line with
what's expected.
|
| | |
| | |
| | |
| | |
| | | |
We don't patch basename and readlink now too as they were added for
mdadm in 8ecd3a5e1db4.
|
| | |
| | |
| | |
| | |
| | |
| | | |
Shutdown hooks are executed right before the shutdown, which is useful
for some applications. Among other things this is needed for mdadm hook
to run.
|
|/ / |
|
| | |
|
|\ \
| | |
| | | |
resolvconf service: init
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This is a refactor of how resolvconf is managed on NixOS. We split it
into a separate service which is enabled internally depending on whether
we want /etc/resolv.conf to be managed by it. Various services now take
advantage of those configuration options.
We also now use systemd instead of activation scripts to update
resolv.conf.
NetworkManager now uses the right option for rc-manager DNS
automatically, so the configuration option shouldn't be exposed.
|
|\ \ \
| |_|/
|/| | |
nixos/systemd: 242 supports Type = exec
|
| |/ |
|
|/
|
|
|
| |
Add configs listed under the fine-tune subdirectory to the grub menu.
Use specified configuration name for the entry if available.
|
|
|
|
| |
Refs #23926
|
|\
| |
| | |
kernel.nix: boot.vesa implies nomodeset
|
| |
| |
| | |
Without nomodeset the console is reset to 80x25 after Grub
|
| |
| |
| |
| |
| |
| | |
* treewide: remove unused variables
* making ofborg happy
|