Advertisement
Guest User

Untitled

a guest
Jan 15th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.40 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. boot.loader.grub.splashImage = null;
  17. boot.loader.grub.configurationLimit = 10;
  18. # Define on which hard drive you want to install Grub.
  19. boot.loader.grub.device = "/dev/sda";
  20. boot.tmpOnTmpfs = true;
  21.  
  22. nix.binaryCaches = [ "https://cache.nixos.org/" ];
  23. #nix.binaryCaches = [];
  24.  
  25. fileSystems."/".device = "/dev/disk/by-uuid/c4447fa3-85b6-4e1f-94a2-d3237f3d1b66";
  26. fileSystems."/".fsType = "xfs";
  27.  
  28. networking.hostName = "nixos"; # Define your hostname.
  29. networking.networkmanager.enable = true;
  30. networking.firewall.enable = false;
  31. #networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
  32.  
  33. # Select internationalisation properties.
  34. i18n = {
  35. # consoleFont = "Lat2-Terminus16";
  36. # consoleKeyMap = "us";
  37. defaultLocale = "ru_RU.UTF-8";
  38. };
  39.  
  40. nixpkgs.config = {
  41. allowUnfree = true;
  42. chromium = {
  43. enablePepperFlash = true;
  44. enablePepperPDF = true;
  45. };
  46. };
  47.  
  48. # Set your time zone.
  49. time.timeZone = "Europe/Moscow";
  50.  
  51. # List packages installed in system profile. To search by name, run:
  52. # $ nix-env -qaP | grep wget
  53. environment.systemPackages = with pkgs; [
  54. iw
  55. wget
  56. nano
  57. gnupg # is needed for kde to download desktop wallpapers
  58. htop
  59. linuxPackages.perf binutils
  60.  
  61. chromium
  62. skype
  63. qbittorrent
  64. gimp
  65. libreoffice
  66. mpv
  67. keepassx2
  68.  
  69. kde4.l10n.ru
  70. kde4.ark p7zip unrar
  71. kde4.gwenview
  72. kde4.ksnapshot
  73. kde4.okular
  74. kde4.kdegames
  75.  
  76. steam
  77. ];
  78.  
  79. # List services that you want to enable:
  80.  
  81. # Enable the OpenSSH daemon.
  82. services.openssh.enable = true;
  83.  
  84. # Enable CUPS to print documents.
  85. # services.printing.enable = true;
  86.  
  87. # Enable the X11 windowing system.
  88. services.xserver.enable = true;
  89. services.xserver.layout = "us,ru";
  90.  
  91. hardware.pulseaudio.enable = true;
  92. # services.xserver.xkbOptions = "eurosign:e";
  93.  
  94. # Enable the KDE Desktop Environment.
  95. services.xserver.displayManager.kdm.enable = true;
  96. services.xserver.displayManager.kdm.extraConfig = ''
  97. [X-:0-Core]
  98. AutoLoginEnable=true
  99. AutoLoginUser=katya
  100. AutoLoginPass=123456
  101. '';
  102. services.xserver.desktopManager.kde4.enable = true;
  103. services.xserver.synaptics.enable = true;
  104. services.xserver.synaptics.twoFingerScroll = true;
  105.  
  106. hardware.opengl = {
  107. extraPackages = [ pkgs.vaapiIntel ];
  108. driSupport = true;
  109. driSupport32Bit = true;
  110. };
  111.  
  112. # Define a user account. Don't forget to set a password with ‘passwd’.
  113. # users.extraUsers.guest = {
  114. # isNormalUser = true;
  115. # uid = 1000;
  116. # };
  117.  
  118. # The NixOS release to be compatible with for stateful data such as databases.
  119. system.stateVersion = "16.09";
  120.  
  121. users.extraUsers.katya = {
  122. name = "katya";
  123. group = "users";
  124. extraGroups = ["wheel" "networkmanager"];
  125. uid = 1001;
  126. createHome = true;
  127. home = "/home/katya";
  128. shell = "/run/current-system/sw/bin/bash";
  129. };
  130. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement