Skip to content

Commit

Permalink
feat: regenerate hardware specific config for neo-wiro
Browse files Browse the repository at this point in the history
  • Loading branch information
mrnossiom committed Dec 31, 2023
1 parent 18eb32c commit a2176f6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 19 deletions.
3 changes: 0 additions & 3 deletions nixos/hardware/archaic-wiro-laptop.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# Do not modify this file! It was generated by ‘nixos-generate-config’
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config
, lib
, pkgs
Expand Down
25 changes: 9 additions & 16 deletions nixos/hardware/neo-wiro-laptop.nix
Original file line number Diff line number Diff line change
@@ -1,30 +1,23 @@
# Do not modify this file! It was generated by ‘nixos-generate-config’
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config
, lib
, pkgs
, modulesPath
, ...
}: {
{ config, lib, pkgs, modulesPath, ... }:

{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];

# boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "sd_mod" "rtsx_pci_sdmmc" ];
# boot.initrd.kernelModules = [ ];
# boot.kernelModules = [ "kvm-intel" ];
# boot.extraModulePackages = [ ];
boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "vmd" "nvme" "sdhci_pci" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];

# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.enp0s31f6.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp2s0.useDHCP = lib.mkDefault true;
# networking.interfaces.docker0.useDHCP = lib.mkDefault true;
# networking.interfaces.wlo1.useDHCP = lib.mkDefault true;

nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

0 comments on commit a2176f6

Please sign in to comment.