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.

63 lines
1.9KB

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