summary refs log tree commit diff
path: root/nixos/modules/system/boot/stage-1.nix
diff options
context:
space:
mode:
authorNikolay Amiantov <ab@fmap.me>2022-02-02 13:45:39 +0300
committerNikolay Amiantov <ab@fmap.me>2022-02-02 15:18:09 +0300
commit3dc6fab5c9362db2cf079ffa15f2b62b05001747 (patch)
tree3ee1bc4b8465e0f4207c85a6f012941c339e6f11 /nixos/modules/system/boot/stage-1.nix
parent6c309ef9ae51fd4ebdcb3b19ab6acea5ba66983e (diff)
downloadnixpkgs-3dc6fab5c9362db2cf079ffa15f2b62b05001747.tar
nixpkgs-3dc6fab5c9362db2cf079ffa15f2b62b05001747.tar.gz
nixpkgs-3dc6fab5c9362db2cf079ffa15f2b62b05001747.tar.bz2
nixpkgs-3dc6fab5c9362db2cf079ffa15f2b62b05001747.tar.lz
nixpkgs-3dc6fab5c9362db2cf079ffa15f2b62b05001747.tar.xz
nixpkgs-3dc6fab5c9362db2cf079ffa15f2b62b05001747.tar.zst
nixpkgs-3dc6fab5c9362db2cf079ffa15f2b62b05001747.zip
nixos/stage-1: add nixos modprobe options
Diffstat (limited to 'nixos/modules/system/boot/stage-1.nix')
-rw-r--r--nixos/modules/system/boot/stage-1.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/nixos/modules/system/boot/stage-1.nix b/nixos/modules/system/boot/stage-1.nix
index 9c684fbada2..1575c0257d1 100644
--- a/nixos/modules/system/boot/stage-1.nix
+++ b/nixos/modules/system/boot/stage-1.nix
@@ -350,6 +350,9 @@ let
             '';
           symlink = "/etc/modprobe.d/ubuntu.conf";
         }
+        { object = config.environment.etc."modprobe.d/nixos.conf".source;
+          symlink = "/etc/modprobe.d/nixos.conf";
+        }
         { object = pkgs.kmod-debian-aliases;
           symlink = "/etc/modprobe.d/debian.conf";
         }