Advertisement
Guest User

Untitled

a guest
Jan 30th, 2019
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.58 KB | None | 0 0
  1. { config, pkgs, ... }:
  2. {
  3. nixpkgs.config = {
  4. allowUnfree = true;
  5. packageOverrides = pkgs: {
  6. docker =
  7. (
  8. import
  9. (
  10. builtins.fetchTarball {
  11. url = https://github.com/NixOS/nixpkgs/archive/ff2b0316b4d0c861790fb407aa827a8eaf2634c5.tar.gz;
  12. sha256="0kd9s27zv19i2mk3f46cjsy92jiv56nhfxay7s9av5nx7l7imy1h";
  13. }
  14. )
  15. {
  16. config = {};
  17. }
  18. ).docker;
  19. };
  20.  
  21. chromium.enableWideVine = true;
  22. };
  23. # Use the systemd-boot EFI boot loader.
  24. boot.loader.systemd-boot.enable = true;
  25. boot.loader.efi.canTouchEfiVariables = true;
  26. boot.supportedFilesystems = ["zfs"];
  27.  
  28. networking.nameservers = [
  29. "1.1.1.1"
  30. "1.0.0.1"
  31. ];
  32. i18n = {
  33. consoleFont = "Lat2-Terminus16";
  34. consoleKeyMap = "us";
  35. defaultLocale = "en_US.UTF-8";
  36. };
  37. time.timeZone = "Europe/Amsterdam";
  38. environment.pathsToLink = [ "/share/zsh" ];
  39. programs.gnupg.agent = { enable = true; enableSSHSupport = true; };
  40. # Enable the OpenSSH daemon.
  41. services.openssh.enable = true;
  42. services.printing.enable = true;
  43. virtualisation.docker.enable = true;
  44. virtualisation.libvirtd.enable = true;
  45. # networking.firewall.allowedTCPPorts = [ ... ];
  46. # networking.firewall.allowedUDPPorts = [ ... ];
  47. # Or disable the firewall altogether.
  48. networking.firewall.enable = false;
  49. # Enable sound.
  50. sound.enable = true;
  51. hardware.pulseaudio.enable = true;
  52.  
  53. # Enable the X11 windowing system.
  54. services.xserver.enable = true;
  55. services.xserver.layout = "us";
  56. # Define a user account. Don't forget to set a password with ‘passwd’.
  57. users.users.fabi = {
  58. extraGroups = ["wheel" "docker" "libvirtd"];
  59. isNormalUser = true;
  60. uid = 1000;
  61. shell = pkgs.zsh;
  62. };
  63. # This value determines the NixOS release with which your system is to be
  64. # compatible, in order to avoid breaking some software such as database
  65. # servers. You should change this only after NixOS release notes say you
  66. # should.
  67. system.stateVersion = "18.09"; # Did you read the comment?
  68. swapDevices = [{device = "/dev/zvol/rpool/swap"; size = 8000;}];# zfs create -V 8G -b $(getconf PAGESIZE) -o logbias=throughput -o sync=always -o primarycache=metadata -o com.sun:auto-snapshot=false zpool/swap
  69. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement