update the config for the asus notebook

This commit is contained in:
Andreas Zweili 2021-11-22 12:04:29 +01:00
parent 17029a96db
commit e952219d1c
2 changed files with 9 additions and 8 deletions

View File

@ -23,8 +23,8 @@
# The global useDHCP flag is deprecated, therefore explicitly set to false here.
# Per-interface useDHCP will be mandatory in the future, so this generated config
# replicates the default behaviour.
networking.useDHCP = false;
networking.interfaces.enp0s3.useDHCP = true;
# networking.useDHCP = true;
networking.interfaces.enp0s20u1.useDHCP = true;
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";

View File

@ -4,13 +4,15 @@
{ config, lib, pkgs, modulesPath, ... }:
{
imports = [ ];
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "ata_piix" "ohci_pci" "sd_mod" "sr_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "sd_mod" "aesni_intel" "cryptd" ];
boot.initrd.kernelModules = [ "dm-snapshot" ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
boot.initrd.luks.devices."cryptlvm".device = "/dev/sda2";
fileSystems."/" =
{ device = "/dev/disk/by-label/nixos";
fsType = "ext4";
@ -25,5 +27,4 @@
[ { device = "/dev/disk/by-label/swap"; }
];
virtualisation.virtualbox.guest.enable = true;
}