summary refs log tree commit diff
path: root/nixos/modules/tasks
Commit message (Collapse)AuthorAge
* nixos/bcachefs: soft-deprecate 'linuxPackages_testing_bcachefs'Madoura2023-11-18
| | | | 'bcachefs' is included in the linux kernel since 6.7-rc1
* nixos/bcachefs: remove 'with lib;'Madoura2023-11-18
|
* Merge branch 'master' into staging-nextWeijia Wang2023-11-12
|\
| * nixos/network-interfaces: fix typo in networking.fqdnGaurav Juvekar2023-11-12
| |
* | Merge master into staging-nextgithub-actions[bot]2023-10-30
|\|
| * systemd-stage-1: Add assertions for unsupported options.Will Fancher2023-10-30
| |
* | Merge branch 'master' into staging-nextVladimír Čunát2023-10-30
|\|
| * Merge pull request #262854 from ↵Ryan Lahfa2023-10-29
| |\ | | | | | | | | | | | | ElvishJerricco/systemd-stage-1-bcachefs-decryption systemd-stage-1: bcachefs decryption
| | * systemd-stage-1: bcachefs decryptionWill Fancher2023-10-22
| | |
* | | Merge master into staging-nextgithub-actions[bot]2023-10-29
|\| |
| * | nixos: fix iproute2 invocations (#263976)Rémy Grünblatt2023-10-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When using iproute2's ip binary, you can omit the dev parameter, e.g. ip link set up eth0 instead of ip link set up dev eth0. This breaks if for some reason your device is named e.g. he, hel, … because it is interpreted as ip link set up help. I just encountered this bug using networking.bridges trying to create an interface named he. I used a grep on nixpkgs to try to find iproute2 invocations using variables without the dev keyword, and found a few, and fixed them by providing the dev keyword. I merely fixed what I found, but the use of abbreviated commands makes it a bit hard to be sure everything has been found (e.g. ip l set … up instead of ip link set … up).
* | | Merge master into staging-nextgithub-actions[bot]2023-10-29
|\| |
| * | systemd domainname service - fix missing domainname binaryJoseph Stahl2023-10-28
| | | | | | | | | | | | needs nettools in path
* | | Merge master into staging-nextgithub-actions[bot]2023-10-29
|\| |
| * | Merge pull request #263033 from ↵Ryan Lahfa2023-10-28
| |\ \ | | | | | | | | | | | | | | | | ElvishJerricco/systemd-stage-1-filesystems-encrypted systemd-stage-1: Enable more encrypted installer tests
| | * | systemd-stage-1: Enable more encrypted installer testsWill Fancher2023-10-23
| | | |
* | | | Merge master into staging-nextgithub-actions[bot]2023-10-28
|\| | |
| * | | Merge pull request #263203 from nikstur/replace-activationLinus Heckemann2023-10-28
| |\ \ \ | | | | | | | | | | Replace simple activationScripts
| | * | | nixos/network-interfaces: replace hostname and domain activationScriptnikstur2023-10-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The hostname is already set by systemd https://www.freedesktop.org/software/systemd/man/latest/hostname.html#Hostname%20semantics Create a separate service that registers the domainname.
* | | | | Merge master into staging-nextgithub-actions[bot]2023-10-26
|\| | | |
| * | | | nixos/fs/vfat: fix inclusion in systemd stage1Cole Mickens2023-10-26
| | |/ / | |/| |
* | | | Merge staging-next into staginggithub-actions[bot]2023-10-21
|\| | |
| * | | Merge pull request #259347 from ↵Ryan Lahfa2023-10-21
| |\ \ \ | | | | | | | | | | | | | | | | | | | | ElvishJerricco/systemd-stage-1-zfs-sysusr-dependency systemd 254: ZFS /usr fix with systemd-stage-1
| | * | | systemd 254: ZFS /usr fix with systemd-stage-1Will Fancher2023-10-06
| | | | |
* | | | | Merge staging-next into staginggithub-actions[bot]2023-10-21
|\| | | |
| * | | | Merge pull request #262179 from ↵nikstur2023-10-21
| |\ \ \ \ | | |_|/ / | |/| | | | | | | | | | | | | ElvishJerricco/systemd-stage-1-specific-fs-packages systemd-stage-1: Use specific fs packages
| | * | | systemd-stage-1: Use specific fs packagesWill Fancher2023-10-19
| | | |/ | | |/|
* | | | Merge staging-next into staginggithub-actions[bot]2023-10-20
|\| | |
| * | | Merge pull request #253764 from linj-fork/fix-ping-wrapperMartin Weinelt2023-10-20
| |\ \ \ | | |/ / | |/| | nixos/network-interfaces: stop wrapping ping with cap_net_raw
| | * | nixos/network-interfaces: stop wrapping ping with cap_net_rawLin Jian2023-09-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From systemd 243 release note[1]: This release enables unprivileged programs (i.e. requiring neither setuid nor file capabilities) to send ICMP Echo (i.e. ping) requests by turning on the "net.ipv4.ping_group_range" sysctl of the Linux kernel for the whole UNIX group range, i.e. all processes. So this wrapper is not needed any more. See also [2] and [3]. This patch also removes: - apparmor profiles in NixOS for ping itself and the wrapped one - other references for the wrapped ping [1]: https://github.com/systemd/systemd/blob/8e2d9d40b33bc8e8f5d3479fb075d3fab32a4184/NEWS#L6457-L6464 [2]: https://github.com/systemd/systemd/pull/13141 [3]: https://fedoraproject.org/wiki/Changes/EnableSysctlPingGroupRange
* | | | Merge staging-next into staginggithub-actions[bot]2023-10-16
|\| | |
| * | | Merge pull request #258695 from Majiir/fix-networkd-defaultgatewayMaximilian Bosch2023-10-15
| |\ \ \ | | | | | | | | | | nixos/network-interfaces-systemd: support and require defaultGateway.interface
| | * | | nixos/network-interfaces-systemd: require defaultGateway.interfaceMajiir Paktu2023-10-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The logic for configuring a gateway without an interface specified adds a route with Gateway= to *every interface* configured by NixOS for networkd. This leads to nonsensical configurations like the following: [Network] DHCP=no Address=192.168.0.1/24 [Route] Gateway=10.0.0.1 GatewayOnLink=false We remove this logic and make defaultGateway.interface required to configure a default gateway when using networkd. We can ignore the removal of GatewayOnLink because systemd defaults it to "no" anyway.
| | * | | nixos/network-interfaces-systemd: support defaultGateway.interfaceMajiir Paktu2023-10-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When interface and address are both specified, we can set Gateway= on the named interface. The existing logic assumes interface is not set (since it's guarded by assertion) so we now disable it when interface has a value. As a bonus, we now support the defaultGateway.metric option when interface is set.
* | | | | Merge staging-next into staginggithub-actions[bot]2023-10-15
|\| | | |
| * | | | Merge pull request #259619 from Majiir/fix-networkd-dhcpMaximilian Bosch2023-10-14
| |\ \ \ \ | | | | | | | | | | | | nixos/network-interfaces-systemd: fix DHCP setting
| | * | | | nixos/network-interfaces-systemd: fix DHCP settingMajiir Paktu2023-10-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The networkd backend logic for setting DHCP= on an interface is bugged and inconsistent with the scripted logic. Consider this simple NixOS configuration: { networking.useNetworkd = true; networking.interfaces.eth0.wakeOnLan.enable = true; } The default value of networking.useDHCP is true, so we expect our eth0 interface to have DHCP enabled. With the scripted backend, this works. But the networkd backend generates the following 40-eth0.network file: [Match] Name=eth0 [Network] DHCP=no IPv6PrivacyExtensions=kernel This is happening because the wakeOnLan configuration creates a key in networking.interfaces, and the networkd backend erroneously checks that instead of for explicitly configured IP addresses as in the scripted backend. The documentation is also inconsistent across various options. This change aligns the networkd backend and option documentation to the actual behavior of the scripted backend, and updates a test to account for this behavior for both backends.
* | | | | | Merge staging-next into staginggithub-actions[bot]2023-10-14
|\| | | | |
| * | | | | Merge pull request #259658 from Majiir/fix-networkd-wakeonlanMaximilian Bosch2023-10-14
| |\ \ \ \ \ | | | | | | | | | | | | | | nixos/network-interfaces-systemd: fix WakeOnLan
| | * | | | | refactor: combine scripted and networkd WakeOnLan configMajiir Paktu2023-10-07
| | | | | | |
| | * | | | | nixos/network-interfaces-systemd: fix WakeOnLanMajiir Paktu2023-10-07
| | | |/ / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | WakeOnLan= was configured when using the scripted backend but not the networkd backend. The other link options are set in the .network file when using networkd, but WakeOnLan= is only available in a .link file.
* | | | | | Merge staging-next into staginggithub-actions[bot]2023-10-14
|\| | | | |
| * | | | | Merge pull request #256598 from adamcstephens/net/warn-multiple-netMaximilian Bosch2023-10-14
| |\ \ \ \ \ | | |/ / / / | |/| | | | nixos/networking: warn when both networkd and dhcpcd can collide
| | * | | | nixos/networking: warn when both networkd and dhcpcd can collideAdam Stephens2023-09-21
| | | |/ / | | |/| |
* | | | | Merge remote-tracking branch 'origin/staging-next' into stagingAlyssa Ross2023-10-07
|\| | | | | | | | | | | | | | | | | | | | | | | | Conflicts: pkgs/top-level/linux-kernels.nix
| * | | | Merge pull request #258677 from Majiir/fix-networkd-search-domainsLinus Heckemann2023-10-07
| |\ \ \ \ | | |_|/ / | |/| | | nixos/network-interfaces-systemd: don't set network-level domains
| | * | | nixos/network-interfaces-systemd: don't set network-level domainsMajiir Paktu2023-10-02
| | | |/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | systemd.network(5) describes Domains= as a "list of domains which should be resolved using the DNS servers on this link." This setting is read by systemd-resolved.service, and it's used to configure both search domains and DNS query routing. Adding the search domains from `networking.search` is unnecessary because these are already configured globally in `resolved.conf` through the default value of `services.resolved.domains`. Adding the system's `networking.domain` to each network is unexpected and probably incorrect. A user may not expect that the domain is in effect automatically added to the search domains even if not specified in `networking.search`. Both of these network-level assignments are problematic in cases where the NixOS networkd module is not managing every interface on the system. In that scenario, the managed interfaces will have Domains= set while the others do not. That will cause systemd-resolved to route DNS queries for the search domains and the system domain to only those managed interfaces.
* | | | Merge staging-next into staginggithub-actions[bot]2023-10-04
|\| | |
| * | | Merge pull request #257510 from ign0tus/fix/wake-on-lan-policyFlorian Klink2023-10-04
| |\ \ \ | | | | | | | | | | Fix: WakeOnLan policy
| | * | | network.interfaces: Add option to configure WakeOnLan policyign0tus2023-09-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds an option to configure a custom WakeOnLan policy instead of the hard-coded "magic" policy. To ensure compatibility with current behavior, "magic" is kept as default.