about summary refs log tree commit diff
path: root/nixos/modules/system
Commit message (Collapse)AuthorAge
* nixos/timesyncd: Make dbus-activatibleArian van Putten2020-06-13
| | | | | | | | Upstream has this alias too; so that dbus activation works. What I don't fully understand is why this would ever be useful given this unit is already started way in early boot; even before dbus is up. But lets just keep behaviour similar to upstream and then ask these questions to upstream.
* nixos/networkd: Make activatible through dbus and netlinkArian van Putten2020-06-13
| | | | | | | | | With this systemd buffers netlink messages in early boot from the kernel itself; and passes them on to networkd for processing once it's started. Makes sure no routing messages are missed. Also makes an alias so that dbus can activate this unit. Upstream has this too.
* nixos/resolved: Include dbus alias of resolved unitArian van Putten2020-06-13
| | | | | | | | This will make dbus socket activation for it work When `systemd-resolved` is restarted; this would lead to unavailability of DNS lookups. You're supposed to use DBUS socket activation to buffer resolved requests; such that restarts happen without downtime
* Merge master into staging-nextFrederik Rietdijk2020-06-08
|\
| * Merge pull request #86163 from worldofpeace/wallpaper-refactorworldofpeace2020-06-07
| |\ | | | | | | Gnome and Pantheon: install nixos wallpapers
| | * nixos-artwork: add file path attributesworldofpeace2020-04-29
| | | | | | | | | | | | | | | | | | This makes things so much easier, and we install to the path that both gnome-backgrounds and elementary-wallpapers install to.
| * | boot: fix order of arguments for `hasPrefix` (#89751)Nadrieril2020-06-07
| | |
* | | Merge master into staging-nextFrederik Rietdijk2020-06-05
|\| |
| * | nixos/grub: support initrd secretsBen Wolsieffer2020-06-04
| | |
| * | nixos/stage-1: make boot.initrd.secrets appear in the manualBen Wolsieffer2020-06-04
| | |
* | | Merge pull request #84032 from teto/fix_kernel_mergeFlorian Klink2020-05-22
|\ \ \ | |/ / |/| | Fix kernel configuration merge
| * | kernel: fix config generationMatthieu Coudron2020-04-01
| | | | | | | | | | | | | | | | | | Addresses https://github.com/NixOS/nixpkgs/issues/71803: Kernel options are not merged as described, especially the "optional" aspects. The error silences legitimate warnings.
* | | nixos/binfmt: move systemd-binfmt.service to binfmt moduleFlorian Klink2020-05-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also, remove the dangling systemd.services.systemd-binfmt.wants = [ "proc-sys-fs-binfmt_misc.mount" ]; in systemd.nix. If boot.binfmt.registrations != {}, systemd will install proc-sys-fs-binfmt_misc.automount, which will auto-mount `/proc/sys/fs/binfmt_misc` as soon as systemd-binfmt tries to access it. Fixes https://github.com/NixOS/nixpkgs/issues/87687 Fixes https://github.com/NixOS/nixops/issues/574
* | | Merge pull request #87016 from flokli/nsswitch-cleanupFlorian Klink2020-05-14
|\ \ \ | | | | | | | | nixos/nsswitch cleanup nss modules
| * | | nixos/systemd: enable systemd-provided nss modules unconditionallyFlorian Klink2020-05-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | A disabled nscd breaks nss module loading on NixOS, and systemd without its nss modules doesn't really work either - instead of silently disabling its nss modules if nscd is disabled, let the assertion in nsswitch handle this.
| * | | nixos/systemd: add to system.nssDatabases.group tooFlorian Klink2020-05-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | nixos/modules/config/nsswitch.nix uses `passwdArray` for both `passwd` and `group`, but when moving this into the systemd module in c0995d22eed1a19ac9442c8460c18dd6a4c389b7, it didn't get split appropriately.
* | | | Merge pull request #85428 from serokell/kirelagin/unit-script-nameLinus Heckemann2020-05-12
|\ \ \ \ | |/ / / |/| | | systemd: Simplify unit script names
| * | | fixup! systemd: Add prefix to unit script derivationsKirill Elagin2020-04-20
| | | | | | | | | | | | | | | | * Avoid extra string interpolation.
| * | | systemd: Add prefix to unit script derivationsKirill Elagin2020-04-17
| | | | | | | | | | | | | | | | | | | | | | | | Add a distinctive `unit-script` prefix to systemd unit scripts to make them easier to find in the store directory. Do not add this prefix to actual script file name as it clutters logs.
| * | | fixup! systemd: Simplify unit script namesKirill Elagin2020-04-17
| | | |
| * | | systemd: Simplify unit script namesKirill Elagin2020-04-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Current journal output from services started by `script` rather than `ExexStart` is unreadable because the name of the file (which journalctl records and outputs) quite literally takes 1/3 of the screen (on smaller screens). Make it shorter. In particular: * Drop the `unit-script` prefix as it is not very useful. * Use `writeShellScriptBin` to write them because: * It has a `checkPhase` which is better than no checkPhase. * The script itself ends up having a short name.
* | | | nixos/raspberrypi-builder: fix cross using buildPackagesRichard Marko2020-05-10
| | | |
* | | | nixos/uboot-builder: fix cross using buildPackagesRichard Marko2020-05-10
| | | |
* | | | Revert "nixos/resolved: Include dbus alias of resolved unit"Florian Klink2020-05-09
| | | | | | | | | | | | | | | | This reverts commit 7fe539f79900efb6b8b6265ade11fdab460ca1da.
* | | | nixos/resolved: Include dbus alias of resolved unitArian van Putten2020-05-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will make dbus socket activation for it work When `systemd-resolved` is restarted; this would lead to unavailability of DNS lookups. You're supposed to use DBUS socket activation to buffer resolved requests; such that restarts happen without downtime
* | | | nixos/systemd: use global proxy config in systemd-importdMichael Adler2020-05-06
| | | |
* | | | nixos/systemd: move NSS module logic to systemd moduleFlorian Klink2020-05-05
| | | | | | | | | | | | | | | | We keep the conditional on only adding if nscd is enabled for now.
* | | | nixos/systemd/resolved: add resolve to nss hosts database if enabledFlorian Klink2020-05-05
| | | | | | | | | | | | | | | | | | | | | | | | We keep the "only add the nss module if nscd is enabled" logic for now. The assertion never was triggered, so it can be removed.
* | | | nixos/initrd-ssh: add extraConfig OptionsFinn Behrens2020-05-03
| | | |
* | | | Revert "nixos/systemd.nix: don’t require online for multi-user.target"Florian Klink2020-05-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 764c8203b833176d546395a5c1adf193a9ca73f8. While this is desireable in principle, some of our modules and services fail during service startup if no network is available don't currently properly set Wants=network-online.target. If nothing pulls in this target anymore, systemd won't try to reach it. We have many VM tests waiting for `network-online.target`, and after 764c8203b833176d546395a5c1adf193a9ca73f8 fail with the following error message: ``` error: unit "network-online.target" is inactive and there are no pending jobs ``` Most likely, test scripts shouldn't wait for `network-online.target` in first place (as `network-online.target` says nothing about whether a service has been started), but instead, the script should wait for the network ports of the corresponding service to be open. Let's revert this for now, and re-apply in a draft PR, fixing the tests before merging it back in.
* | | | Merge pull request #82026 from andir/systemd-update-networkd-optionsFlorian Klink2020-05-01
|\ \ \ \ | | | | | | | | | | nixos/networkd: update configuration options
| * | | | nixos/networkd: support PrefixDelegationHint in DHCPv6 sectionAndreas Rammhold2020-05-01
| | | | | | | | | | | | | | | | | | | | With sytemd v244 we will have support for this option.
| * | | | nixos/networkd: add ipv6PrefixAndreas Rammhold2020-05-01
| | | | |
| * | | | nixos/networkd: add ipv6PrefixDelegationConfig to networkdAndreas Rammhold2020-05-01
| | | | |
| * | | | nixos/networkd: rename the networkd dhcpConfig option to dhcpV4ConfigAndreas Rammhold2020-05-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This follows upstreams change in documentation. While the `[DHCP]` section might still work it is undocumented and we should probably not be using it anymore. Users can just upgrade to the new option without much hassle. I had to create a bit of custom module deprecation code since the usual approach doesn't support wildcards in the path.
| * | | | nixos/networkd: introduce the DHCPv6 network section eqivalentAndreas Rammhold2020-05-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | You can now specify option for the `[DHCPv6]` section with `systemd.network.<name>.dhcpV6Config.…`. Previously you could only use the combined legacy DHCP configuration.
| * | | | nixos/networkd: add MaxAttempts and SendRelease to the DHCP optionsAndreas Rammhold2020-05-01
| | | | |
| * | | | nixos/networkd: remove CriticalConnection= fields in favor of KeepConnectionAndreas Rammhold2020-05-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Systemd upstream has deprecated CriticalConnection with v244 in favor of KeepConnection as that seems to be more flexible: The CriticalConnection= setting in .network files is now deprecated, and replaced by a new KeepConfiguration= setting which allows more detailed configuration of the IP configuration to keep in place.
| * | | | nixos/networkd: add RoutesToDNS to DHCP sectionAndreas Rammhold2020-04-30
| | |_|/ | |/| |
* / | | nixos/systemd.nix: don’t require online for multi-user.targetMatthew Bauer2020-04-28
|/ / / | | | | | | | | | | | | | | | | | | | | | Not all systems need to be online to boot up. So, don’t pull network-online.target into multi-user.target. Services that need online network can still require it. This increases my boot time from ~9s to ~5s.
* | | Merge pull request #85735 from nh2/journald-storage-limit-logsFlorian Klink2020-04-23
|\ \ \ | | | | | | | | journald service docs: Add helpful comments about the journal getting full
| * | | journald service: Add helpful comments about the journal getting fullNiklas Hambüchen2020-04-23
| | | |
* | | | nixos/networkd: Fix restartTriggersArian van Putten2020-04-23
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1d61efb7f177f7b70c467ab4940fde0a3481d4dc accidentially changed the restartTriggers of systemd-networkd.service` to point to the attribute name (in this case, a location relative to `/etc`), instead of the location of the network-related unit files in the nix store. This caused systemd-networkd to not get restarted on activation of new networking config, if the file name hasn't changed. Fix this, by pointing this back to the location in the nix store.
* | | journald service: Increase default rate limit 1000 -> 10000.Niklas Hambüchen2020-04-21
| | | | | | | | | | | | | | | | | | Follows the upstream change of this default: https://github.com/systemd/systemd/pull/8660
* | | Merge pull request #85371 from Mic92/tmpfilesJörg Thalheim2020-04-20
|\ \ \ | |/ / |/| |
| * | tmpfiles: load user-defined entries firstJörg Thalheim2020-04-16
| | | | | | | | | | | | | | | | | | | | | systemd-tmpfiles will load all files in lexicographic order and ignores rules for the same path in later files with a warning Since we apply the default rules provided by systemd, we should load user-defines rules first so users have a chance to override defaults.
* | | Merge pull request #85004 from emilazy/add-initrd-secrets-path-assertionYegor Timoshenko2020-04-16
|\ \ \ | | | | | | | | nixos/stage-1: check secret paths before copying
| * | | nixos/stage-1: check secret paths before copyingEmily2020-04-11
| | | | | | | | | | | | | | | | Fixes #84976.
| * | | nixos/initrd-ssh: fix typo in docsEmily2020-04-11
| | | |
* | | | Merge pull request #84266 from Ma27/nspawn-overridesMaximilian Bosch2020-04-16
|\ \ \ \ | |_|/ / |/| | | nixos/systemd-nspawn: disallow multiple packages with `.nspawn`-units