Advertisement
Guest User

Untitled

a guest
Nov 18th, 2017
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.34 KB | None | 0 0
  1.  
  2. { config, pkgs, ... }:
  3.  
  4. {
  5. imports =
  6. [ # Include the results of the hardware scan.
  7. ./hardware-configuration.nix
  8. ];
  9. hardware.pulseaudio.support32Bit = true;
  10. nixpkgs.config.allowUnfree = true;
  11. services.xserver.videoDrivers = [ "nvidia" ];
  12. hardware.opengl.driSupport32Bit = true;
  13. boot.loader.grub.enable = true;
  14. boot.loader.grub.version = 2;
  15.  
  16. boot.loader.grub.device = "/dev/sda";
  17.  
  18. networking.hostName = "nixos";
  19.  
  20. # Localisation
  21. i18n = {
  22. consoleFont = "Lat2-Terminus16";
  23. consoleKeyMap = "ru";
  24. defaultLocale = "ru_RU.UTF-8";
  25. };
  26.  
  27. # Set your time zone.
  28. time.timeZone = "Europe/Moscow";
  29.  
  30. # Packages
  31. environment.systemPackages = with pkgs; [
  32. psmisc playonlinux wine winetricks atom firefox wget git
  33. ];
  34.  
  35. # Some programs need SUID wrappers, can be configured further or are
  36. # started in user sessions.
  37. # programs.bash.enableCompletion = true;
  38. # programs.mtr.enable = true;
  39. # programs.gnupg.agent = { enable = true; enableSSHSupport = true; };
  40.  
  41. # List services that you want to enable:
  42.  
  43. # Enable the OpenSSH daemon.
  44. # services.openssh.enable = true;
  45.  
  46. # Open ports in the firewall.
  47. # networking.firewall.allowedTCPPorts = [ ... ];
  48. # networking.firewall.allowedUDPPorts = [ ... ];
  49. # Or disable the firewall altogether.
  50. # networking.firewall.enable = false;
  51.  
  52. # Enable CUPS to print documents.
  53. # services.printing.enable = true;
  54.  
  55. # Enable the X11 windowing system.
  56. services.xserver.enable = true;
  57. services.xserver.layout = "us";
  58. services.xserver.xkbOptions = "eurosign:e";
  59.  
  60. # Enable touchpad support.
  61. # services.xserver.libinput.enable = true;
  62. services.xserver.displayManager.lightdm.enable = true;
  63.  
  64. services.xserver.desktopManager.plasma5.enable = true;
  65.  
  66.  
  67. # Define a user account. Don't forget to set a password with ‘passwd’.
  68. users.extraUsers.aprokurov = {
  69. extraGroups = [ "wheel" "audio" "video" ];
  70. isNormalUser = true;
  71. uid = 1000;
  72. home = "/home/aprokurov";
  73. };
  74.  
  75. # This value determines the NixOS release with which your system is to be
  76. # compatible, in order to avoid breaking some software such as database
  77. # servers. You should change this only after NixOS release notes say you
  78. # should.
  79. system.stateVersion = "17.09"; # Did you read the comment?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement