summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-09-01 01:52:01 -0700
committerFuwn <[email protected]>2024-09-01 01:52:01 -0700
commitcd2620a2e36719ba060b492725bbbbf844a5e1e2 (patch)
tree606236f84fbd2d0f425b93c92ce3d3e0831cb564 /modules
parenthi (diff)
downloadnixos-config-cd2620a2e36719ba060b492725bbbbf844a5e1e2.tar.xz
nixos-config-cd2620a2e36719ba060b492725bbbbf844a5e1e2.zip
ok
Diffstat (limited to 'modules')
-rw-r--r--modules/boot/default.nix22
1 files changed, 17 insertions, 5 deletions
diff --git a/modules/boot/default.nix b/modules/boot/default.nix
index dc062fe..4d8b8d1 100644
--- a/modules/boot/default.nix
+++ b/modules/boot/default.nix
@@ -1,4 +1,9 @@
-{ pkgs, config, ... }:
+{
+ pkgs,
+ lib,
+ config,
+ ...
+}:
{
imports = [
./grub.nix
@@ -21,10 +26,17 @@
kernelModules = [ "v4l2loopback" ];
extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback ];
- kernel.sysctl = {
- "net.ipv6.conf.eth0.disable_ipv6" = true;
- "net.ipv6.conf.tun0.disable_ipv6" = true;
- };
+ kernel.sysctl = lib.mkMerge (
+ map
+ (interface: {
+ "net.ipv6.conf.${interface}.disable_ipv6" = true;
+ })
+ [
+ "enp42s0"
+ "wlp4s0"
+ "tun0"
+ ]
+ );
kernelParams = [
"nvidia-drm.fbdev=1"