Guest User

Untitled

a guest
Apr 10th, 2018
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.68 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 systemd-boot EFI boot loader.
  14. boot.loader.systemd-boot.enable = true;
  15. # Use the GRUB 2 boot loader
  16. # boot.loader.grub = {
  17. # enable = true;
  18. # version = 2;
  19. # device = "nodev";
  20. # efiSupport = true;
  21. # gfxmodeEfi = "text";
  22. # gfxmodeBios = "text";
  23. # enableCryptodisk = true;
  24. # };
  25. boot.loader.efi.canTouchEfiVariables = true;
  26. boot.initrd.luks.devices = [
  27. {
  28. name = "lvm";
  29. device = "/dev/disk/by-uuid/5fbee728-b607-45f1-a17c-cb4ad8b59bac";
  30. preLVM = true;
  31. allowDiscards = true;
  32. }
  33. ];
  34. boot.initrd.availableKernelModules = [
  35. "aes_x86_64"
  36. "aesni_intel"
  37. "cryptd"
  38. ];
  39. boot.initrd.prepend = [ "/etc/nixos/thinkpad_x1_yoga_3rd_gen_acpi_override" ];
  40. boot.kernelModules = [
  41. "iwlmvm"
  42. ];
  43. fileSystems."/".options = [ "discard" ];
  44.  
  45. networking.hostName = "mercury"; # Define your hostname.
  46. networking.networkmanager.enable = true; # Enables wireless support via wpa_supplicant.
  47.  
  48. # Select internationalisation properties.
  49. i18n = {
  50. consoleFont = "Lat2-Terminus16";
  51. consoleKeyMap = "us";
  52. defaultLocale = "en_US.UTF-8";
  53. };
  54.  
  55. # Set your time zone.
  56. # time.timeZone = "Europe/Amsterdam";
  57.  
  58. # List packages installed in system profile. To search by name, run:
  59. # $ nix-env -qaP | grep wget
  60. environment.systemPackages = with pkgs; [
  61. wget
  62. vim
  63. firefox
  64. konsole
  65. git
  66. kate
  67. screen
  68. mosh
  69. gcc
  70. gnumake
  71. python3
  72. ];
  73.  
  74. # Some programs need SUID wrappers, can be configured further or are
  75. # started in user sessions.
  76. programs.bash.enableCompletion = true;
  77. # programs.mtr.enable = true;
  78. # programs.gnupg.agent = { enable = true; enableSSHSupport = true; };
  79.  
  80. # List services that you want to enable:
  81.  
  82. # Enable the OpenSSH daemon.
  83. services.openssh.enable = true;
  84.  
  85. # Enable the 'locate' command and service
  86. services.locate.enable = true;
  87.  
  88. # Open ports in the firewall.
  89. # networking.firewall.allowedTCPPorts = [ ... ];
  90. # networking.firewall.allowedUDPPorts = [ ... ];
  91. # Or disable the firewall altogether.
  92. # networking.firewall.enable = false;
  93.  
  94. # Enable CUPS to print documents.
  95. services.printing.enable = true;
  96.  
  97. # Enable the X11 windowing system.
  98. services.xserver.enable = true;
  99. services.xserver.layout = "us";
  100. # services.xserver.xkbOptions = "eurosign:e";
  101.  
  102. # Enable touchpad support.
  103. services.xserver.libinput.enable = true;
  104. # services.xserver.synaptics.enable = true;
  105. # services.xserver.synaptics.twoFingerScroll = true;
  106.  
  107. # Enable the KDE Desktop Environment.
  108. services.xserver.displayManager.sddm.enable = true;
  109. services.xserver.desktopManager.plasma5.enable = true;
  110. # Enable Gnome
  111. # services.xserver.displayManager.gdm = {
  112. # enable = true;
  113. # wayland = true;
  114. #};
  115. #services.xserver.desktopManager.gnome3.enable = true;
  116.  
  117. # Define a user account. Don't forget to set a password with ‘passwd’.
  118. users.extraUsers.jdl = {
  119. isNormalUser = true;
  120. uid = 1000;
  121. home = "/home/jdl";
  122. description = "Joseph Long";
  123. extraGroups = [ "wheel" "networkmanager" ];
  124. };
  125. security.sudo.wheelNeedsPassword = false;
  126.  
  127. # This value determines the NixOS release with which your system is to be
  128. # compatible, in order to avoid breaking some software such as database
  129. # servers. You should change this only after NixOS release notes say you
  130. # should.
  131. system.stateVersion = "17.09"; # Did you read the comment?
  132.  
  133. }
Add Comment
Please, Sign In to add comment