mirror of
https://github.com/Feliix42/dotfiles.git
synced 2024-11-22 14:06:30 +00:00
hardware: update config, disable fprintd, enable udisks2
This commit is contained in:
parent
4e67429ea0
commit
6d6b035a76
2 changed files with 20 additions and 4 deletions
|
@ -27,6 +27,16 @@
|
||||||
[ { device = "/dev/disk/by-uuid/fff5639a-f572-44b0-a9b4-a81afe65c32d"; }
|
[ { 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.<interface>.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";
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
# high-resolution display
|
# high-resolution display
|
||||||
|
|
|
@ -1,16 +1,22 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
|
# Update the CPU microcode
|
||||||
|
hardware.cpu.intel.updateMicrocode = true;
|
||||||
|
|
||||||
# Enable support for flashing new firmware onto my Moonlander
|
# Enable support for flashing new firmware onto my Moonlander
|
||||||
hardware.keyboard.zsa.enable = true;
|
hardware.keyboard.zsa.enable = true;
|
||||||
|
|
||||||
services.udev.packages = [ pkgs.libu2f-host ];
|
services.udev.packages = [ pkgs.libu2f-host ];
|
||||||
|
|
||||||
|
# automount usb drives
|
||||||
|
services.udisks2.enable = true;
|
||||||
|
|
||||||
# enable fingerprint reader
|
# enable fingerprint reader
|
||||||
services.fprintd.enable = true;
|
#services.fprintd.enable = true;
|
||||||
security.pam.services.login.fprintAuth = true;
|
#security.pam.services.login.fprintAuth = true;
|
||||||
#security.pam.services.xscreensaver.fprintAuth = true;
|
##security.pam.services.xscreensaver.fprintAuth = true;
|
||||||
security.pam.services.sudo.fprintAuth = true;
|
#security.pam.services.sudo.fprintAuth = true;
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
# tool for flashing firmware
|
# tool for flashing firmware
|
||||||
|
|
Loading…
Reference in a new issue