summary refs log tree commit diff
path: root/nixos/modules/system/boot/systemd.nix
Commit message (Collapse)AuthorAge
* Merge pull request #49360 from tadfisher/logind-suspend-then-hibernateSilvan Mosberger2018-10-28
|\ | | | | nixos/systemd: support "suspend-then-hibernate" logind option
| * nixos/systemd: support "suspend-then-hibernate" logind optionTad Fisher2018-10-28
| |
* | nixos/rsyslogd & nixos/syslog-ng: fix broken module (#47306)aanderse2018-10-27
|/ | | | | | | | * 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
* Merge pull request #47563 from jameysharp/unscriptedJörg Thalheim2018-10-02
|\ | | | | Replace several activation script snippets with declarative configuration
| * nixos/systemd: don't create /var/lib/udevJamey Sharp2018-09-30
| | | | | | | | | | 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.
| * nixos/systemd: let journald create /var/log/journalJamey Sharp2018-09-30
| | | | | | | | | | | | | | | | | | | | | | 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.
| * nixos/stage-2: create empty machine-id at bootJamey Sharp2018-09-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * nixos/systemd: remove activation dependencyJamey Sharp2018-09-29
| | | | | | | | | | | | 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.
* | systemd: don't restart user-runtime-dir@ on upgradesJörg Thalheim2018-09-28
|/ | | | | Likewise logind we should not try to restart this service after upgrade, the user's current session depends on it.
* Merge master into stagingFrederik Rietdijk2018-08-09
|\
| * systemd: improve unit script drv namingLinus Heckemann2018-08-08
| | | | | | | | | | Also store scripts directly in the nix store rather than having the superfluous /bin/ tree.
* | systemd: 238 -> 239Jörg Thalheim2018-08-06
|/
* Merge pull request #44202 from jerith666/journald-rateJörg Thalheim2018-07-30
|\ | | | | journald: set rateLimitInterval and rateLimitBurst to upstream defaults
| * journald: set rateLimitInterval and rateLimitBurst to upstream defaultsMatt McHenry2018-07-29
| |
* | Merge pull request #41970 from ↵Matthew Bauer2018-07-23
|\ \ | | | | | | | | | | | | aneeshusa/enable-building-systemd-without-libmicrohttpd nixos/systemd: Allow building systemd without libmicrohttpd
| * | nixos/systemd: Allow building systemd without libmicrohttpdAneesh Agrawal2018-06-13
| |/
* | [bot] nixos/*: remove unused arguments in lambdasvolth2018-07-20
| |
* | [bot]: remove unreferenced codevolth2018-07-20
| |
* | nixos: systemd.globalEnvironment: fix typeSilvan Mosberger2018-07-18
| | | | | | | | | | | | | | Follow up fix of fb2a8d66699c96d6a687eb71ebfcca08e3405037 https://github.com/NixOS/nixpkgs/pull/38356 https://github.com/NixOS/nixpkgs/pull/40416
* | nixos/modules: users.(extraUsers|extraGroup->users|group)Florian Klink2018-06-30
|/
* Merge pull request #38356 from Infinisil/fix/environmentDaiderd Jordan2018-04-20
|\ | | | | nixos/systemd: Fix environment type -> allows overriding
| * nixos/systemd: Fix environment type -> allows overridingSilvan Mosberger2018-04-03
| |
* | Merge remote-tracking branch 'origin/master' into stagingShea Levy2018-03-28
|\|
| * nixos/systemd: add option for cgroup accountingdavidak2018-03-27
| |
* | systemd: 237 -> 238Nikolay Amiantov2018-03-22
|/
* nixos: Move uses of stdenv.shell to runtimeShell.Shea Levy2018-03-01
|
* systemd: 234 -> 237Franz Pletz2018-02-13
| | | | | Co-Authored-By: Florian Klink <flokli@flokli.de> Co-Authored-By: Andreas Rammhold <andreas@rammhold.de>
* nixos: skip restarting systemd-logind to not break x11Joerg Thalheim2017-09-27
|
* systemd-tmpfiles: fix docsRobin Gloster2017-09-24
| | | | We have been doing this since 4e4161c21268d6952f0f0f5130414e30dcf5cd97
* modules/systemd: improve logind.extraConfig exampleProfpatsch2017-08-03
| | | | Since we have a .handleLidSwitch option now, give an other example.
* systemd: paths and slices are supported for user units tooPeter Hoeg2017-07-13
|
* services.logind: add options for lid-switch behaviorMaximilian Bosch2017-05-23
|
* Allow systemd-fsck@.service to find fsck.*Eelco Dolstra2017-04-04
| | | | Fixes "fsck.ext4 doesn't exist, not checking file system on ...".
* Don't restart systemd-fsck@ unitsEelco Dolstra2017-04-04
| | | | | | | | 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.
* dhcpcd service: fix network-online.target integrationFranz Pletz2017-02-23
| | | | | | | | | | 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.
* systemd: Properly escape environment options.Kevin Cox2017-02-20
| | | | | | | | | | | 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.
* systemd service: don't install systemd-hwdb-updateNikolay Amiantov2017-02-08
|
* nixos/systemd: set r-x group permissions on /var/log/journalAntoine Eiche2017-02-08
| | | | | | | This allows services such as systemd-journal-gateway to access the systemd journal. Closes #22288
* Merge pull request #22353 from abbradar/bluetoothNikolay Amiantov2017-02-05
|\ | | | | Bluetooth improvements
| * systemd service: add aliases optionNikolay Amiantov2017-02-02
| |
* | systemd: 231 -> 232Robin Gloster2017-01-26
|/ | | | Includes adding some more upstream units and removing obsolete (-.slice) ones.
* systemd: add slice supportMarkov Dmitry2016-12-20
|
* systemd.timers: filter timers with empty startAtAlexander Ried2016-10-19
|
* Merge pull request #19069 from peterhoeg/targetsJörg Thalheim2016-10-03
|\ | | | | systemd: add user target support
| * systemd: add user target supportPeter Hoeg2016-09-29
| | | | | | | | | | | | | | | | | | 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
* | Merge pull request #18511 from ericsagnes/feat/remove-optionSetJoachim F2016-10-01
|\ \ | | | | | | modules: optionSet -> submodule
| * | systemd module: optionSet -> submoduleEric Sagnes2016-09-13
| | |
* | | systemd-journald service: restart instead of stop and startNikolay Amiantov2016-09-30
| |/ |/| | | | | Also restart when configuration is changed.
* | Merge pull request #18573 from peterhoeg/systemd_user_cfgEelco Dolstra2016-09-14
|\ \ | |/ |/| systemd: support setting defaults for user instances
| * support user configPeter Hoeg2016-09-08
| |