Guest User

Untitled

a guest
Dec 10th, 2018
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.41 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, 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. # Define on which hard drive you want to install Grub.
  17. boot.loader.grub.device = "/dev/vda";
  18. boot.supportedFilesystems = [ "zfs" ];
  19.  
  20. networking.networkmanager.enable = false;
  21. networking.hostName = "brandon-nix"; # Define your hostname.
  22. networking.hostId = "0c388ebf";
  23. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
  24.  
  25. #
  26. # Disable firewall in Cloud images by default; should be
  27. # handled by cloud manager config instead.
  28. #
  29. networking.firewall.enable = false;
  30.  
  31. # Select internationalisation properties.
  32. # i18n = {
  33. # consoleFont = "Lat2-Terminus16";
  34. # consoleKeyMap = "us";
  35. # defaultLocale = "en_US.UTF-8";
  36. # };
  37.  
  38. # Set your time zone.
  39. # time.timeZone = "Europe/Amsterdam";
  40.  
  41. # List packages installed in system profile. To search by name, run:
  42. # $ nix-env -qaP | grep wget
  43. environment.systemPackages = with pkgs; [
  44. # General
  45. wget
  46. # Editors
  47. emacs vim nano
  48. # Desktop
  49. icewm
  50. # Development
  51. git tmux
  52. # Cloud
  53. cloud-init euca2ools
  54. ];
  55.  
  56. # List services that you want to enable:
  57.  
  58. services.zfs = {
  59. autoScrub.enable = true;
  60. autoSnapshot.enable = true;
  61. };
  62.  
  63. # Enable the OpenSSH daemon.
  64. services.openssh.enable = true;
  65. services.openssh.permitRootLogin = "without-password";
  66. services.openssh.challengeResponseAuthentication = false;
  67.  
  68. # Enable cloud-init
  69. # TODO: fix config file install
  70. # services.cloud-init.enable = true;
  71.  
  72. services.nfs.server.enable = true;
  73.  
  74. # Enable CUPS to print documents.
  75. # services.printing.enable = true;
  76.  
  77. # Enable the X11 windowing system.
  78. services.xserver.enable = true;
  79. services.xserver.layout = "us";
  80. # services.xserver.xkbOptions = "eurosign:e";
  81.  
  82. services.xserver.windowManager.icewm.enable = true;
  83. # Enable the KDE Desktop Environment.
  84. # services.xserver.displayManager.kdm.enable = true;
  85. # services.xserver.desktopManager.kde4.enable = true;
  86.  
  87. security.sudo.wheelNeedsPassword = false;
  88. users.mutableUsers = false;
  89. users.users.nixos = {
  90. isNormalUser = true;
  91. extraGroups = [ "wheel" "networkmanager" ];
  92. home = "/home/nixos";
  93. description = "Default system user";
  94. openssh.authorizedKeys.keys = ["ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCvfDUTxx/eLkFRFZahGAqb7UPI32qSxf+SIEzIsa0ZQ3fGyQpGXwmWUXaJUyK30VedOZ6pnj9McBJ5g3qZm/eTRVcVgOP6KqG/YnChg5Qg7O3fROjeVY77LuYs6MCKavF+nE+CTgQ7IbRYlAMkdaMM6DElQ0huQIf/ekmP9yWvd25fuHoCHMDSB3kfzOU6C+fr0qIuQQkj/oq++pRMYbVgZ6RESWV83ULmorLrn/otH+/DInrVIclA+RsF188VfaJQQOCFNO0eVlBKgl+zFqdTB4XVu3TOTq7mAsAfv08qE5msyv8fZaZLLoL935ktiuogQCy8vgYrhLPb9/mILNqqnWuoozjNDdu7kwZcOg5OzsVhxuhOx70MJHZeBwkXI2O6194ioTWIn4GeI1OBabeaLl5Wp+TfPIL87QSXM9vk1IvAg44Mdux+teuBmdZXtzi4TgtKIs1fX3l3jMmSTmxzU7Mm72Nm2Aa11SVlYprqolOz+rrOiDCelnhhOmG55EbYLlm9nC3dnqULRj9pfrRBvUpWtV+jEyI7nhqx8XFvKf6jSq68JeY0QN1xKaekiNnN0Bo3VoNAtj9DBYfOTlCfs67VxL5+Cvn87wsOfQrdCmeU2TLCAL1UzhNaRHvHsqt30+8NeMe/O/sgwSHHWFbZp0Aq+yb4RBNpEFMB4UjSxw== beb82@cornell.edu"];
  95. };
  96. users.users.brandon = {
  97. isNormalUser = true;
  98. extraGroups = [ "wheel" "networkmanager" ];
  99. home = "/home/brandon";
  100. description = "Default system user";
  101. openssh.authorizedKeys.keys = ["ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCvfDUTxx/eLkFRFZahGAqb7UPI32qSxf+SIEzIsa0ZQ3fGyQpGXwmWUXaJUyK30VedOZ6pnj9McBJ5g3qZm/eTRVcVgOP6KqG/YnChg5Qg7O3fROjeVY77LuYs6MCKavF+nE+CTgQ7IbRYlAMkdaMM6DElQ0huQIf/ekmP9yWvd25fuHoCHMDSB3kfzOU6C+fr0qIuQQkj/oq++pRMYbVgZ6RESWV83ULmorLrn/otH+/DInrVIclA+RsF188VfaJQQOCFNO0eVlBKgl+zFqdTB4XVu3TOTq7mAsAfv08qE5msyv8fZaZLLoL935ktiuogQCy8vgYrhLPb9/mILNqqnWuoozjNDdu7kwZcOg5OzsVhxuhOx70MJHZeBwkXI2O6194ioTWIn4GeI1OBabeaLl5Wp+TfPIL87QSXM9vk1IvAg44Mdux+teuBmdZXtzi4TgtKIs1fX3l3jMmSTmxzU7Mm72Nm2Aa11SVlYprqolOz+rrOiDCelnhhOmG55EbYLlm9nC3dnqULRj9pfrRBvUpWtV+jEyI7nhqx8XFvKf6jSq68JeY0QN1xKaekiNnN0Bo3VoNAtj9DBYfOTlCfs67VxL5+Cvn87wsOfQrdCmeU2TLCAL1UzhNaRHvHsqt30+8NeMe/O/sgwSHHWFbZp0Aq+yb4RBNpEFMB4UjSxw== beb82@cornell.edu"];
  102. };
  103.  
  104. virtualisation.docker.enable = true;
  105.  
  106. # The NixOS release to be compatible with for stateful data such as databases.
  107. system.stateVersion = "16.03";
  108.  
  109. }
Add Comment
Please, Sign In to add comment