about summary refs log tree commit diff
path: root/nixos/modules/system
AgeCommit message (Collapse)AuthorFilesLines
2024-06-13Merge pull request #314579 from ivan770/etc-direct-symlinksnikstur2-19/+18
nixos/etc: support direct symlinks with etc overlay
2024-06-12Merge pull request #318604 from jmbaur/pref64-networkdFlorian Klink1-0/+20
nixos/systemd-networkd: add PREF64 related options
2024-06-11nixos/initrd-ssh: Fix ignoreEmptyHostKeys descriptionMing-Chuan1-1/+1
2024-06-09nixos/systemd-networkd: add PREF64 related optionsJared Baur1-0/+20
2024-06-06nixos/boot: use `--replace-fail`Pol Dellaiera1-1/+1
2024-06-05Merge pull request #316168 from dawidd6/systemd-user-generatorsFlorian Klink2-5/+18
nixos/systemd: link user-generators
2024-06-03nixos/systemd: simplify hooks functionDawid Dziurla1-6/+6
2024-06-01Merge pull request #313485 from tpwrules/copytoram-notifGuillaume Girol1-0/+1
nixos/stage-1-init: notify during copytoram
2024-05-30nixos/systemd: link user-generatorsDawid Dziurla1-5/+6
2024-05-30nixos/systemd-user: add generators optionDawid Dziurla1-0/+12
2024-05-30Merge pull request #312472 from Ma27/networkd-option-renameFranz Pletz1-196/+49
nixos/networkd: get rid of *Config attributes in lists
2024-05-29nixos/systemd-boot-builder: remove workaround for 10 year old Nix bugJade Lovelace1-2/+1
This was originally introduced in 9245516b46a64316f1d7b0622ff12519, which reveals it is a workaround for a Nix bug from 10 years ago that was *fixed* 10 years ago. References: https://github.com/NixOS/nix/pull/425 https://github.com/NixOS/nixpkgs/issues/5494
2024-05-26Merge pull request #297250 from NickCao/sysuserWill Fancher1-2/+19
nixos/systemd-sysusers: make uid/gid allocation stable
2024-05-25nixos/etc: support direct symlinks with etc overlayivan7702-19/+18
2024-05-22nixos/stage-1-init: notify during copytoramThomas Watson1-0/+1
Demystifies a long pause at an unrelated message, particularly if the source media is slow.
2024-05-21nixos/systemd-stage-1: Support systemd-resolvedWill Fancher1-13/+51
2024-05-21nixos/systemd-resolved: Should be wanted by sysinit.targetWill Fancher1-1/+1
As per its [Install] section upstream
2024-05-21nixos/systemd-resolved: Re-indentWill Fancher1-53/+56
2024-05-20nixos/networkd: get rid of *Config attributes in listsMaximilian Bosch1-196/+49
This patch is about removing `wireguardPeerConfig`, `dhcpServerStaticLeaseConfig` - a.k.a. the AbstractSingletonProxyFactoryBean of nixpkgs - and friends. As a former colleague said > worst abstraction ever I second that. I've written enough networkd config for NixOS systems so far to have a strong dislike. In fact, these don't even make sense: `netdevs.wireguardPeers._.wireguardPeerConfig` will be rendered into the key `[WireGuardPeer]` and every key from `wireguardPeerConfig` is in there. Since it's INI, there's no place where sections on the same level as wireguardPeerConfig fit into. Hence, get rid of it all. For the transition, using the old way is still allowed, but gives a warning. I think we could drop this after one release. The tests of rosenpass and systemd-networkd-dhcpserver-static-leases were broken on the rev before, hence they were updated, but are still not building.
2024-05-18Merge pull request #309236 from ElvishJerricco/sd-s1-fix-xfs-fsckPol Dellaiera1-2/+2
nixos/systemd-stage-1: Fix fsck.xfs needing bash's sh symlink
2024-05-16treewide: Remove usage of pkgs.{system,hostPlatform} aliasesFabian Möller1-1/+1
These aliases should not be used inside nixpkgs and are only there for backward compatibility.
2024-05-15Merge pull request #275485 from Ex-32/binfmt-emulatedsystems-fixPol Dellaiera1-1/+1
nixos/binfmt: added assertion to prevent emulation of current system
2024-05-10nixos/switch-to-configuration: add new implementationJared Baur1-34/+75
This adds an implementation of switch-to-configuration that allows for closer interaction with the lifecycle of systemd units by using DBus APIs directly instead of using systemctl. It is disabled by default, but can be enabled by specifying `{ system.switch = { enable = false; enableNg = true; }; }`.
2024-05-08Merge pull request #306926 from tie/networkd-global-ipv6-privacy-extensionsFlorian Klink1-0/+2
nixos/networkd: allow IPv6PrivacyExtensions in networkd.conf
2024-05-06Merge pull request #301827 from kampka/forbiddenDependenciesRegexArtturin2-14/+13
nixos/top-level: Turn `system.forbiddenDependenciesRegex` into a list
2024-05-05nixos/systemd-stage-1: Fix fsck.xfs needing bash's sh symlinkWill Fancher1-2/+2
2024-05-04nixos/dbus: fix switching from dbus-broker to dbusSandro Jäckel1-0/+3
2024-05-02nixos/top-level: Rename `system.forbiddenDependenciesRegex` to ↵Christian Kampka2-14/+13
`system.forbiddenDependenciesRegexes` and turn it in to a list. The current setting of system.forbiddenDependenciesRegex is a string, meaning only one such regex as any additional setting would result in conflicts. As maintainers have already started using this setting eg. in profiles, it would be good if this setting would accept a list of regex to allow the end user to make use of it in addition to package maintainers.
2024-05-02nixos/grub: fix documentation for `boot.loader.grub.theme` (#305663)Anomalocaridid1-3/+2
Closes #233865. Currently, the documentation for `boot.loader.grub.theme` misleadingly implies that it needs a package for a grub theme instead of a path to a grub theme.
2024-04-30nixos/systemd-boot: Avoid remote mypy executions (#263397)nicoo1-1/+3
2024-04-26nixos/networkd: allow IPv6PrivacyExtensions in networkd.confIvan Trubach1-0/+2
This change adds support for setting IPv6PrivacyExtensions= in systemd.network.config.networkConfig. https://www.freedesktop.org/software/systemd/man/latest/networkd.conf.html#IPv6PrivacyExtensions= Added in systemd version 254.
2024-04-23nixos/systemd-boot: avoid expensive mypy builds on configuration changesJörg Thalheim1-12/+14
* Mypy dependencies pull in quite a few packages, which makes it harder to create offline installers.
2024-04-23Merge pull request #297726 from r-vdp/systemd-unit-namesFlorian Klink3-26/+25
systemd: add a name option to all systemd units
2024-04-15systemd: add a name option to all systemd unitsr-vdp3-26/+25
This allows us to set things like dependencies in a way that we can catch typos at eval time. So instead of ```nix systemd.services.foo.wants = [ "bar.service" ]; ``` we can write ```nix systemd.services.foo.wants = [ config.systemd.services.bar.name ]; ``` which will throw an error if no such service has been defined. Not all cases can be done like this (eg template services), but in a lot of cases this will allow to avoid typos. There is a matching option on the unit option (`systemd.units."foo.service".name`) as well.
2024-04-14nixos/networkd: add [Bridge] section to netdev confAstrid Yu1-0/+42
This setting was missing from netdev. This commit additionally adds a test using the new section, ensuring that STP can be enabled.
2024-04-13nixos: remove all uses of lib.mdDocstuebinm57-510/+504
these changes were generated with nixq 0.0.2, by running nixq ">> lib.mdDoc[remove] Argument[keep]" --batchmode nixos/**.nix nixq ">> mdDoc[remove] Argument[keep]" --batchmode nixos/**.nix nixq ">> Inherit >> mdDoc[remove]" --batchmode nixos/**.nix two mentions of the mdDoc function remain in nixos/, both of which are inside of comments. Since lib.mdDoc is already defined as just id, this commit is a no-op as far as Nix (and the built manual) is concerned.
2024-04-09Merge pull request #154952 from colemickens/extlinuxpennae1-1/+7
extlinux-conf-builder: specialisations entries
2024-04-08systemd-lib: include GPTMaxLabelLength constantnikstur1-3/+3
2024-04-01Merge pull request #299717 from ElvishJerricco/systemd-debug-shellFlorian Klink2-2/+9
nixos/systemd: Enable debug-shell.service.
2024-03-29nixos/systemd: Enable debug-shell.service.Will Fancher2-2/+9
2024-03-29Merge pull request #277759 from onny/initrd-keyfilesWill Fancher1-4/+26
nixos/initrd-ssh: Add authorizedKeyFiles option
2024-03-28treewide: Fix all Nix ASTs in all markdown filesJanne Heß1-2/+6
This allows for correct highlighting and maybe future automatic formatting. The AST was verified to work with nixfmt only.
2024-03-28treewide: Mark Nix blocks in markdown as NixJanne Heß1-2/+2
This should help us with highlighting and future formatting.
2024-03-26Merge pull request #298201 from philiptaron/fix-initrd-activation-with-gpt-autoWill Fancher1-1/+4
nixos/systemd/initrd: make systemd mount root as `rw` when using gpt-auto to find it
2024-03-24Merge pull request #283240 from Aleksanaa/nixos/plymouthSandro1-3/+3
nixos/plymouth: improving documentation of logo option
2024-03-22nixos/systemd/initrd: make systemd mount root as rw if gpt-auto is setPhilip Taron1-1/+4
2024-03-22Merge #284149: nixos/kernel: add hid_corsair to initrd modulesVladimír Čunát1-0/+1
2024-03-20Merge pull request #297227 from WilliButz/uki/expose-rendered-confignikstur1-3/+12
nixos/uki: add configFile option
2024-03-19nixos/systemd-sysusers: make uid/gid allocation stableNick Cao1-2/+19
2024-03-19Merge pull request #290061 from SuperSandro2000/kernel-modules-package-nameWill Fancher3-11/+7
nixos/boot: move name overwrite to pkgs.aggregateModules to option