Advertisement
Guest User

Untitled

a guest
Feb 2nd, 2018
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.98 KB | None | 0 0
  1. # Edit this configuration file to define what should be installed on
  2. # your system. Help is available in the configuration.nix(5) man page
  3. # and in the NixOS manual (accessible by running ‘nixos-help’).
  4.  
  5. { config, lib, pkgs, ... }:
  6.  
  7. {
  8. imports =
  9. [ # Include the results of the hardware scan.
  10. ./hardware-configuration.nix
  11. ];
  12.  
  13. # Use the GRUB 2 boot loader.
  14. boot.loader.grub.enable = true;
  15. boot.loader.grub.version = 2;
  16. # boot.loader.grub.efiSupport = true;
  17. # boot.loader.grub.efiInstallAsRemovable = true;
  18. # boot.loader.efi.efiSysMountPoint = "/boot/efi";
  19. # Define on which hard drive you want to install Grub.
  20. boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only
  21. nix.extraOptions = ''
  22. trusted-binary-caches = https://nixcache.reflex-frp.org;
  23. '';
  24. networking.hostName = "quux-server"; # Define your hostname.
  25. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
  26.  
  27. # Select internationalisation properties.
  28. # i18n = {
  29. # consoleFont = "Lat2-Terminus16";
  30. # consoleKeyMap = "us";
  31. # defaultLocale = "en_US.UTF-8";
  32. # };
  33.  
  34. # Set your time zone.
  35. # time.timeZone = "Europe/Amsterdam";
  36. # List packages installed in system profile. To search by name, run:
  37. # $ nix-env -qaP | grep wget
  38.  
  39. nixpkgs.config.allowUnfree = true;
  40. environment.systemPackages = with pkgs; [
  41. wget
  42. vim
  43. git
  44. zsh
  45. tmux
  46. curl
  47. lsof
  48. icewm
  49. zlib
  50. zlib.dev
  51. at_spi2_atk
  52. chromiumBeta
  53. bash
  54. daemontools
  55. liquibase
  56. pkgconfig
  57. stack
  58. openjdk
  59. postgresql100
  60. ];
  61.  
  62. # Some programs need SUID wrappers, can be configured further or are
  63. # started in user sessions.
  64. # programs.bash.enableCompletion = true;
  65. # programs.mtr.enable = true;
  66. # programs.gnupg.agent = { enable = true; enableSSHSupport = true; };
  67.  
  68. # List services that you want to enable:
  69. # Enable rdp
  70. services.xrdp.enable = true;
  71. services.xrdp.defaultWindowManager = "${pkgs.icewm}/bin/icewm";
  72. services.xserver.windowManager.icewm.enable = true;
  73. # services.xserver.desktopManager.plasma5.enable = true;
  74. # Enable the OpenSSH daemon.
  75. services.openssh.enable = true;
  76.  
  77. # Open ports in the firewall.
  78. networking.firewall.allowedTCPPorts = [ 3389 ];
  79. # networking.firewall.allowedUDPPorts = [ ... ];
  80. # Or disable the firewall altogether.
  81. # networking.firewall.enable = false;
  82.  
  83. # Enable CUPS to print documents.
  84. # services.printing.enable = true;
  85.  
  86. # Enable the X11 windowing system.
  87. services.xserver.enable = true;
  88. services.xserver.layout = "us";
  89. # services.xserver.xkbOptions = "eurosign:e";
  90.  
  91. # Enable touchpad support.
  92. # services.xserver.libinput.enable = true;
  93.  
  94. # Enable the KDE Desktop Environment.
  95. # services.xserver.displayManager.sddm.enable = true;
  96. # services.xserver.desktopManager.plasma5.enable = true;
  97.  
  98. # Define a user account. Don't forget to set a password with ‘passwd’.
  99. users.extraUsers.mlitchard = {
  100. isNormalUser = true;
  101. uid = 1000;
  102. extraGroups = [ "wheel" "admin" "postgres" "root"];
  103. };
  104.  
  105. users.extraUsers.postgres = { extraGroups = [ "wheel" "admin" "root"]; };
  106. users.defaultUserShell = "/run/current-system/sw/bin/zsh";
  107. programs.zsh.enable = true;
  108. # Make sure to run:
  109. # sudo createuser -s postgres
  110. #
  111. # services.postgresql.enable = true;
  112. services.postgresql.package = pkgs.postgresql100;
  113. services.postgresql.dataDir = "/home/mlitchard/var";
  114. services.postgresql.authentication = lib.mkForce ''
  115. # # Generated file; do not edit!
  116. local all all trust
  117. host all all 127.0.0.1/32 trust
  118. host all all ::1/128 trust
  119. '';
  120.  
  121. # This value determines the NixOS release with which your system is to be
  122. # compatible, in order to avoid breaking some software such as database
  123. # servers. You should change this only after NixOS release notes say you
  124. # should.
  125. system.stateVersion = "17.09"; # Did you read the comment?
  126.  
  127. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement