| Commit message (Collapse) | Author | Age |
|\
| |
| | |
nixos/systemd: support "suspend-then-hibernate" logind option
|
| | |
|
|/
|
|
|
|
|
|
| |
* journald: forward message to syslog by default if a syslog implementation is installed
* added a test to ensure rsyslog is receiving messages when expected
* added rsyslogd tests to release.nix
|
|\
| |
| | |
Replace several activation script snippets with declarative configuration
|
| |
| |
| |
| |
| | |
As far as I can tell, systemd has never used this directory, so I think
this is a holdover from before udev merged into systemd.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The default value for journald's Storage option is "auto", which
determines whether to log to /var/log/journal based on whether that
directory already exists. So NixOS has been unconditionally creating
that directory in activation scripts.
However, we can get the same behavior by configuring journald.conf to
set Storage to "persistent" instead. In that case, journald will create
the directory itself if necessary.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Previously, the activation script was responsible for ensuring that
/etc/machine-id exists. However, the only time it could not already
exist is during stage-2-init, not while switching configurations,
because one of the first things systemd does when starting up as PID 1
is to create this file. So I've moved the initialization to
stage-2-init.
Furthermore, since systemd will do the equivalent of
systemd-machine-id-setup if /etc/machine-id doesn't have valid contents,
we don't need to do that ourselves.
We _do_, however, want to ensure that the file at least exists, because
systemd also uses the non-existence of this file to guess that this is a
first-boot situation. In that case, systemd tries to create some
symlinks in /etc/systemd/system according to its presets, which it can't
do because we've already populated /etc according to the current NixOS
configuration.
This is not necessary for any other activation script snippets, so it's
okay to do it after stage-2-init runs the activation script. None of
them declare a dependency on the "systemd" snippet. Also, most of them
only create files or directories in ways that obviously don't need the
machine-id set.
|
| |
| |
| |
| |
| |
| | |
As far as I can tell, the systemd snippet hasn't depended on groups
being initialized since 5d02c02a9bfd6912e4e0f700b1b35e76d1d6bd3f in
2015, when a `setfacl` call was removed.
|
|/
|
|
|
| |
Likewise logind we should not try to restart this service after upgrade,
the user's current session depends on it.
|
|\ |
|
| |
| |
| |
| |
| | |
Also store scripts directly in the nix store rather than having the
superfluous /bin/ tree.
|
|/ |
|
|\
| |
| | |
journald: set rateLimitInterval and rateLimitBurst to upstream defaults
|
| | |
|
|\ \
| | |
| | |
| | |
| | | |
aneeshusa/enable-building-systemd-without-libmicrohttpd
nixos/systemd: Allow building systemd without libmicrohttpd
|
| |/ |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
Follow up fix of fb2a8d66699c96d6a687eb71ebfcca08e3405037
https://github.com/NixOS/nixpkgs/pull/38356
https://github.com/NixOS/nixpkgs/pull/40416
|
|/ |
|
|\
| |
| | |
nixos/systemd: Fix environment type -> allows overriding
|
| | |
|
|\| |
|
| | |
|
|/ |
|
| |
|
|
|
|
|
| |
Co-Authored-By: Florian Klink <flokli@flokli.de>
Co-Authored-By: Andreas Rammhold <andreas@rammhold.de>
|
| |
|
|
|
|
| |
We have been doing this since 4e4161c21268d6952f0f0f5130414e30dcf5cd97
|
|
|
|
| |
Since we have a .handleLidSwitch option now, give an other example.
|
| |
|
| |
|
|
|
|
| |
Fixes "fsck.ext4 doesn't exist, not checking file system on ...".
|
|
|
|
|
|
|
|
| |
Restarting them is useless since the filesystem is already
checked. Worse, restarting them causes the filesystem to be unmounted.
Also remove an override for systemd-rkill@.service which no longer
exists.
|
|
|
|
|
|
|
|
|
|
| |
When dhcpcd instead of networkd is used, the network-online.target behaved
the same as network.target, resulting in broken services that need a working
network connectivity when being started.
This commit makes dhcpcd wait for a lease and makes it wanted by
network-online.target. In turn, network-online.target is now wanted by
multi-user.target, so it will be activated at every boot.
|
|
|
|
|
|
|
|
|
|
|
| |
Using toJSON on a string value works because the allowed JSON escape
sequences is almost a subset of the systemd allowed escape sequences.
The only exception is `\/` which JSON allows but systemd doesn't.
Luckily this sequence isn't required and toJSON don't produce it making
the result valid for systemd consumption.
Examples of things that this fixes are environment variables with double
quotes or newlines.
|
| |
|
|
|
|
|
|
|
| |
This allows services such as systemd-journal-gateway to access the
systemd journal.
Closes #22288
|
|\
| |
| | |
Bluetooth improvements
|
| | |
|
|/
|
|
| |
Includes adding some more upstream units and removing obsolete (-.slice) ones.
|
| |
|
| |
|
|\
| |
| | |
systemd: add user target support
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This allows us to define system user targets in addition to the existing
services, timers and sockets.
Furthermore, we add a top-level configuration keyword:
- Documentation
|
|\ \
| | |
| | | |
modules: optionSet -> submodule
|
| | | |
|
| |/
|/|
| |
| | |
Also restart when configuration is changed.
|
|\ \
| |/
|/| |
systemd: support setting defaults for user instances
|
| | |
|