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.

34 lines
862B

  1. { config, lib, pkgs, ... }:
  2. {
  3. imports = [
  4. ../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];
  21. services.xserver.displayManager.sessionCommands = ''
  22. gpg-connect-agent /bye
  23. unset SSH_AGENT_PID
  24. export SSH_AUTH_SOCK="''${XDG_RUNTIME_DIR}/gnupg/S.gpg-agent.ssh"
  25. '';
  26. virtualisation.virtualbox.host.enable = true;
  27. yorick.support32bit = true;
  28. nix.gc.automatic = pkgs.lib.mkOverride 30 false;
  29. # yubikey
  30. hardware.u2f.enable = true;
  31. services.pcscd.enable = true;
  32. environment.systemPackages = [pkgs.yubikey-manager];
  33. }