1
0

default.nix 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. { config, pkgs, lib, ... }:
  2. let
  3. hosts = import ../../../config/hosts.nix;
  4. biopass = pkgs.callPackage ../../../nixos/programs/biopass.nix {};
  5. in
  6. {
  7. imports = [
  8. ./hardware.nix
  9. ../../../nixos/modules/system/nixos-base.nix
  10. ../../../nixos/modules/system/users.nix
  11. ../../../nixos/profiles/workstation
  12. ../../../nixos/profiles/development
  13. ../../../nixos/profiles/gaming
  14. ../../../nixos/profiles/school
  15. ../../../nixos/modules/hardware/networking
  16. ../../../nixos/modules/hardware/sound
  17. ../../../nixos/modules/hardware/bluetooth
  18. # ../../../nixos/modules/hardware/biometric/fingerprint
  19. ../../../nixos/modules/hardware/battery
  20. ../../../nixos/modules/desktop/hyprland
  21. ../../../nixos/modules/greeter/tuigreet/hyprland.nix
  22. ];
  23. #boot.kernelParams = [
  24. # "resume=UUID=3f914128-2e08-4080-b1bb-d7ddf9ef647a"
  25. #];
  26. boot.kernelParams = [
  27. "amd_pstate=active"
  28. ];
  29. networking.hostName = hosts.ono.hostname;
  30. environment.systemPackages = [ biopass ];
  31. security.pam.services.sudo.text = lib.mkBefore ''
  32. auth sufficient ${biopass}/lib/security/pam_biopass.so
  33. '';
  34. security.pam.services.login.text = lib.mkBefore ''
  35. auth sufficient ${biopass}/lib/security/pam_biopass.so
  36. '';
  37. }