summary refs log tree commit diff
path: root/nixos/modules/system
diff options
context:
space:
mode:
authorMartin Weinelt <hexa@darmstadt.ccc.de>2022-02-22 17:17:14 +0100
committerMartin Weinelt <hexa@darmstadt.ccc.de>2022-02-22 17:22:57 +0100
commitc2147ab6a88250ed668c1b3e577b8c735f63d054 (patch)
tree600722447abd757cb5c0e9973b918ae90d6786f0 /nixos/modules/system
parent67574bd99457d0971357baded8274c4442d8c2f7 (diff)
downloadnixpkgs-c2147ab6a88250ed668c1b3e577b8c735f63d054.tar
nixpkgs-c2147ab6a88250ed668c1b3e577b8c735f63d054.tar.gz
nixpkgs-c2147ab6a88250ed668c1b3e577b8c735f63d054.tar.bz2
nixpkgs-c2147ab6a88250ed668c1b3e577b8c735f63d054.tar.lz
nixpkgs-c2147ab6a88250ed668c1b3e577b8c735f63d054.tar.xz
nixpkgs-c2147ab6a88250ed668c1b3e577b8c735f63d054.tar.zst
nixpkgs-c2147ab6a88250ed668c1b3e577b8c735f63d054.zip
modprobe: install systemd's modprobe options
Shipped by systemd to combat kmod default options that interfere with
the netdev setup, when those drivers are initially loaded.
Diffstat (limited to 'nixos/modules/system')
-rw-r--r--nixos/modules/system/boot/modprobe.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/system/boot/modprobe.nix b/nixos/modules/system/boot/modprobe.nix
index 7426d148891..27f78835adb 100644
--- a/nixos/modules/system/boot/modprobe.nix
+++ b/nixos/modules/system/boot/modprobe.nix
@@ -72,6 +72,8 @@ with lib;
       '';
     environment.etc."modprobe.d/debian.conf".source = pkgs.kmod-debian-aliases;
 
+    environment.etc."modprobe.d/systemd.conf".source = "${pkgs.systemd}/lib/modprobe.d/systemd.conf";
+
     environment.systemPackages = [ pkgs.kmod ];
 
     system.activationScripts.modprobe = stringAfter ["specialfs"]