From 6d6b035a76502fc5b57973ee783420d878fc8ee1 Mon Sep 17 00:00:00 2001 From: Felix Wittwer Date: Wed, 22 Jun 2022 14:19:00 +0200 Subject: [PATCH] hardware: update config, disable fprintd, enable udisks2 --- entropy/nixos/hardware-configuration.nix | 10 ++++++++++ entropy/nixos/modules/hardware.nix | 14 ++++++++++---- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/entropy/nixos/hardware-configuration.nix b/entropy/nixos/hardware-configuration.nix index 82a0b36..dfdd084 100644 --- a/entropy/nixos/hardware-configuration.nix +++ b/entropy/nixos/hardware-configuration.nix @@ -27,6 +27,16 @@ [ { device = "/dev/disk/by-uuid/fff5639a-f572-44b0-a9b4-a81afe65c32d"; } ]; + # 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..useDHCP`. + networking.useDHCP = lib.mkDefault true; + # networking.interfaces.enp0s20f0u2u1.useDHCP = lib.mkDefault true; + # networking.interfaces.enp0s31f6.useDHCP = lib.mkDefault true; + # networking.interfaces.vboxnet0.useDHCP = lib.mkDefault true; + # networking.interfaces.wlp0s20f3.useDHCP = lib.mkDefault true; + powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; # high-resolution display diff --git a/entropy/nixos/modules/hardware.nix b/entropy/nixos/modules/hardware.nix index 863ae0e..48dc341 100644 --- a/entropy/nixos/modules/hardware.nix +++ b/entropy/nixos/modules/hardware.nix @@ -1,16 +1,22 @@ { config, pkgs, ... }: { + # Update the CPU microcode + hardware.cpu.intel.updateMicrocode = true; + # Enable support for flashing new firmware onto my Moonlander hardware.keyboard.zsa.enable = true; services.udev.packages = [ pkgs.libu2f-host ]; + # automount usb drives + services.udisks2.enable = true; + # enable fingerprint reader - services.fprintd.enable = true; - security.pam.services.login.fprintAuth = true; - #security.pam.services.xscreensaver.fprintAuth = true; - security.pam.services.sudo.fprintAuth = true; + #services.fprintd.enable = true; + #security.pam.services.login.fprintAuth = true; + ##security.pam.services.xscreensaver.fprintAuth = true; + #security.pam.services.sudo.fprintAuth = true; environment.systemPackages = with pkgs; [ # tool for flashing firmware