my Nix configuration
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.4KB

  1. { config, lib, pkgs, ... }:
  2. {
  3. imports = [
  4. <yori-nix/roles/graphical.nix>
  5. ];
  6. users.extraUsers.yorick.extraGroups = ["input"];
  7. services.redshift = {
  8. enable = true;
  9. latitude = "51.8";
  10. longitude = "5.8";
  11. temperature = {
  12. day = 6500;
  13. night = 5500;
  14. };
  15. };
  16. services.printing = {
  17. enable = true;
  18. drivers = [ pkgs.gutenprint ];
  19. };
  20. environment.systemPackages = [pkgs.ghostscript pkgs.yubikey-manager];
  21. nix.gc.automatic = pkgs.lib.mkOverride 30 false;
  22. #services.xserver.displayManager.sessionCommands = ''
  23. # gpg-connect-agent /bye
  24. # unset SSH_AGENT_PID
  25. # export SSH_AUTH_SOCK="''${XDG_RUNTIME_DIR}/gnupg/S.gpg-agent.ssh"
  26. #'';
  27. virtualisation.virtualbox.host.enable = true;
  28. yorick.support32bit = true;
  29. nix.gc.automatic = pkgs.lib.mkOverride 30 false;
  30. # yubikey
  31. hardware.u2f.enable = true;
  32. services.pcscd.enable = true;
  33. #environment.systemPackages = [pkgs.yubikey-manager];
  34. }
  35. nix = {
  36. gc.automatic = pkgs.lib.mkOverride 30 false;
  37. binaryCaches = [
  38. "https://cache.nixos.org"
  39. ];
  40. trustedBinaryCaches = config.nix.binaryCaches ++ [
  41. "https://builder.serokell.io"
  42. "https://cache.lumi.guide"
  43. ];
  44. binaryCachePublicKeys = [
  45. "serokell:ic/49yTkeFIk4EBX1CZ/Wlt5fQfV7yCifaJyoM+S3Ss="
  46. "cache.lumi.guide-1:z813xH+DDlh+wvloqEiihGvZqLXFmN7zmyF8wR47BHE="
  47. ];
  48. #extraOptions = ''
  49. # netrc-file = ${nixnetrc}
  50. #'';
  51. };