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.

workstation.nix 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. { config, lib, pkgs, ... }:
  2. {
  3. imports = [
  4. <yori-nix/roles/graphical.nix>
  5. ];
  6. users.extraUsers.yorick.extraGroups = [ "input" "wireshark" ];
  7. services.printing = {
  8. enable = true;
  9. drivers = [ pkgs.gutenprint ];
  10. };
  11. environment.systemPackages = [pkgs.ghostscript pkgs.yubikey-manager];
  12. #services.xserver.displayManager.sessionCommands = ''
  13. # gpg-connect-agent /bye
  14. # unset SSH_AGENT_PID
  15. # export SSH_AUTH_SOCK="''${XDG_RUNTIME_DIR}/gnupg/S.gpg-agent.ssh"
  16. #'';
  17. virtualisation.virtualbox.host.enable = true;
  18. yorick.support32bit = true;
  19. # yubikey
  20. hardware.u2f.enable = true;
  21. services.pcscd.enable = true;
  22. sound.enable = true;
  23. #environment.systemPackages = [pkgs.yubikey-manager];
  24. fonts.fonts = [ pkgs.emojione ];
  25. # bluetooth headphones
  26. hardware.pulseaudio.package = pkgs.pulseaudioFull;
  27. # japanese typing
  28. i18n.inputMethod = {
  29. enabled = "fcitx";
  30. fcitx.engines = with pkgs.fcitx-engines; [ mozc ];
  31. };
  32. programs.wireshark.enable = true;
  33. nix = {
  34. gc.automatic = pkgs.lib.mkOverride 30 false;
  35. binaryCaches = [
  36. "https://cache.nixos.org"
  37. ];
  38. trustedBinaryCaches = config.nix.binaryCaches ++ [
  39. "ssh://yorick@jupiter.serokell.io"
  40. "ssh-ng://jupiter"
  41. "https://serokell.cachix.org"
  42. ];
  43. binaryCachePublicKeys = [
  44. "serokell:ic/49yTkeFIk4EBX1CZ/Wlt5fQfV7yCifaJyoM+S3Ss="
  45. "serokell-1:aIojg2Vxgv7MkzPJoftOO/I8HKX622sT+c0fjnZBLj0="
  46. "cache.lumi.guide-1:z813xH+DDlh+wvloqEiihGvZqLXFmN7zmyF8wR47BHE="
  47. "serokell.cachix.org-1:5DscEJD6c1dD1Mc/phTIbs13+iW22AVbx0HqiSb+Lq8="
  48. "disciplina.cachix.org-1:zDeIFV5cu22v04EUuRITz/rYxpBCGKY82x0mIyEYjxE="
  49. ];
  50. };
  51. }