Guest User

Untitled

a guest
Mar 17th, 2017
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.42 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. ###BOOT
  14.  
  15. # Use the systemd-boot EFI boot loader.
  16. boot.loader.systemd-boot.enable = true;
  17. boot.loader.efi.canTouchEfiVariables = true;
  18. boot.kernelParams = [
  19. "acpi_osi="
  20. ];
  21. # boot.loader.grub.device = /dev/sda1;
  22.  
  23. ###LAOCALE
  24.  
  25. # Select internationalisation properties.
  26. i18n = {
  27. # consoleFont = "cyr-sun16";
  28. # consoleKeyMap = "us,ru";
  29. defaultLocale = "ru_RU.UTF-8";
  30. };
  31.  
  32. # Set your time zone.
  33. time.timeZone = "Asia/Yekaterinburg";
  34.  
  35. ###PACKAGES
  36. # nixpkgs.config.allowUnfree = true;
  37. # List packages installed in system profile. To search by name, run:
  38. # $ nix-env -qaP | grep wget
  39. environment.systemPackages = with pkgs; [
  40. wget
  41. emacs
  42. emacsPackages.ess
  43. auctex
  44. hunspell
  45. wineStaging
  46. libreoffice
  47. pidgin
  48. ark
  49. ktorrent
  50. kde-gtk-config
  51. terminus_font
  52. htop
  53. mc
  54. ] ++ [
  55. kdeApplications.okular
  56. ]
  57. ;
  58.  
  59. nixpkgs.config = {
  60.  
  61. allowUnfree = true;
  62.  
  63. packageOverrides = pkgs: {
  64. # Define my own Emacs
  65. emacs = pkgs.lib.overrideDerivation (pkgs.emacs.override {
  66. # Use gtk3 instead of the default gtk2
  67. withGTK2 = true;
  68. withGTK3 = false;
  69. #gtk = pkgs.gtk2;
  70. # Make sure imagemgick is a dependency because I regularly
  71. # look at pictures from Emasc
  72. });
  73. };
  74. };
  75.  
  76. ###NETWORKING
  77.  
  78. networking.hostName = "ASUS"; # Define your hostname.
  79. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
  80.  
  81.  
  82. # Enable the OpenSSH daemon.
  83. # services.openssh.enable = true;
  84.  
  85. # Open ports in the firewall.
  86. # networking.firewall.allowedTCPPorts = [ ... ];
  87. # networking.firewall.allowedUDPPorts = [ ... ];
  88. # Or disable the firewall altogether.
  89. # networking.firewall.enable = false;
  90.  
  91. # Enable CUPS to print documents.
  92. services.printing = {
  93. enable = true;
  94. drivers = [ pkgs.hplipWithPlugin ];
  95. };
  96.  
  97. # Enable NetworkManger.
  98. networking.networkmanager.enable = true;
  99.  
  100. ###X11
  101.  
  102. # Enable the X11 windowing system.
  103. services.xserver.enable = true;
  104. services.xserver.layout = "us,ru";
  105. services.xserver.xkbOptions = "grp:caps_toggle,grp_led:scroll,compose:ralt";
  106. services.xserver.synaptics.enable = true;
  107. services.xserver.synaptics.twoFingerScroll = true;
  108. services.xserver.synaptics.additionalOptions = ''
  109. Option "HorizTwoFingerScroll" "1" '';
  110.  
  111. ###ENVIRONMENT
  112.  
  113. # Enable the KDE Desktop Environment.
  114. services.xserver.displayManager.sddm.enable = true;
  115. services.xserver.desktopManager.plasma5.enable = true;
  116.  
  117. ###HARDWARE
  118.  
  119. hardware.pulseaudio.enable = true;
  120. hardware.bumblebee.enable = true;
  121.  
  122. ###USERS
  123.  
  124. # Define a user account. Don't forget to set a password with ‘passwd’.
  125. users.extraUsers.croll = {
  126. home = "/home/croll";
  127. description = "Artur";
  128. extraGroups = [ "wheel" "networkmanager" ];
  129. isNormalUser = true;
  130. uid = 1000;
  131. };
  132.  
  133. # The NixOS release to be compatible with for stateful data such as databases.
  134. system.stateVersion = "17.03";
  135.  
  136. }
Advertisement
Add Comment
Please, Sign In to add comment