From e952219d1cfa7ffdf03ce06c39f6a9af3886d602 Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Mon, 22 Nov 2021 12:04:29 +0100 Subject: [PATCH] update the config for the asus notebook --- hardware/asus/configuration.nix | 4 ++-- hardware/asus/hardware-configuration.nix | 13 +++++++------ 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/hardware/asus/configuration.nix b/hardware/asus/configuration.nix index 3d75f0f..878c0f9 100644 --- a/hardware/asus/configuration.nix +++ b/hardware/asus/configuration.nix @@ -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/"; diff --git a/hardware/asus/hardware-configuration.nix b/hardware/asus/hardware-configuration.nix index 8453137..6d09acb 100644 --- a/hardware/asus/hardware-configuration.nix +++ b/hardware/asus/hardware-configuration.nix @@ -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; }