Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.03 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 = {
  15. loader = {
  16. grub.enable = true;
  17. grub.version = 2;
  18. grub.device = "/dev/vda";
  19. };
  20. };
  21.  
  22. networking.hostName = "nixos";
  23.  
  24. fileSystems."/" = {
  25. fsType = "ext4";
  26. device = "/dev/vda1";
  27. };
  28.  
  29. # Select internationalisation properties.
  30. i18n = {
  31. consoleFont = "Lat2-Terminus16";
  32. consoleKeyMap = "us";
  33. defaultLocale = "en_US.UTF-8";
  34. };
  35.  
  36. # Set your time zone.
  37. time.timeZone = "US/Chicago";
  38.  
  39. # List packages installed in system profile. To search, run:
  40. # $ nix search wget
  41. environment = {
  42. systemPackages = with pkgs; [
  43. wget vim
  44. ];
  45.  
  46. variables = {
  47. EDITOR = "vim";
  48. };
  49. };
  50.  
  51. # Some programs need SUID wrappers, can be configured further or are
  52. # started in user sessions.
  53. programs.bash.enableCompletion = true;
  54. # programs.mtr.enable = true;
  55. # programs.gnupg.agent = { enable = true; enableSSHSupport = true; };
  56.  
  57. # List services that you want to enable:
  58.  
  59. # Enable the OpenSSH daemon.
  60. services.openssh.enable = true;
  61.  
  62. # networking.firewall.allowedTCPPorts = [ ... ];
  63. # networking.firewall.allowedUDPPorts = [ ... ];
  64. # networking.firewall.enable = false;
  65.  
  66. # Define a user account. Don't forget to set a password with ‘passwd’.
  67. # users.extraUsers.guest = {
  68. # isNormalUser = true;
  69. # uid = 1000;
  70. # };
  71.  
  72. # This value determines the NixOS release with which your system is to be
  73. # compatible, in order to avoid breaking some software such as database
  74. # servers. You should change this only after NixOS release notes say you
  75. # should.
  76. system.stateVersion = "18.03"; # Did you read the comment?
  77.  
  78. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement