Advertisement
Guest User

Untitled

a guest
May 5th, 2016
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.58 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. nixpkgs.config.allowUnfree = true;
  14.  
  15. # Use the gummiboot efi boot loader.
  16. boot.loader.gummiboot.enable = true;
  17. boot.loader.efi.canTouchEfiVariables = true;
  18.  
  19. networking = {
  20. hostName = "nixos"; # Define your hostname.
  21. # wireless.enable = true; # Enables wireless support via wpa_supplicant.
  22. networkmanager.enable = true;
  23. };
  24.  
  25. hardware.bluetooth.enable = true;
  26.  
  27. fonts = {
  28. enableFontDir = true;
  29. enableGhostscriptFonts = true;
  30. fonts = with pkgs; [
  31. corefonts
  32. inconsolata
  33. source-code-pro
  34. ubuntu_font_family
  35. unifont
  36. ipaexfont
  37. ];
  38. };
  39.  
  40. # Select internationalisation properties.
  41. i18n = {
  42. consoleFont = "su12x22";
  43. consoleKeyMap = "us";
  44. defaultLocale = "en_US.UTF-8";
  45. inputMethod.enabled = "ibus";
  46. inputMethod.ibus.engines = with pkgs.ibus-engines; [ mozc ];
  47. inputMethod.fcitx.engines = with pkgs.fcitx-engines; [ mozc ];
  48. };
  49.  
  50. # Set your time zone.
  51. time.timeZone = "Asia/Tokyo";
  52.  
  53. # List packages installed in system profile. To search by name, run:
  54. # $ nix-env -qaP | grep wget
  55. environment.systemPackages = with pkgs; [
  56. manpages
  57. w3m
  58. wget
  59. git
  60. which
  61. tmux
  62. tig
  63. vim
  64. emacs
  65. chromium
  66. terminator
  67. dmenu
  68. stalonetray
  69. haskellPackages.xmobar
  70. gnome3.networkmanagerapplet
  71. xsel
  72. powertop
  73. rxvt_unicode-with-plugins
  74. numix-icon-theme
  75. awscli
  76. gnome3.gnome-bluetooth
  77. silver-searcher
  78. docker
  79. ];
  80.  
  81. # List services that you want to enable:
  82.  
  83. # Enable the OpenSSH daemon.
  84. # services.openssh.enable = true;
  85.  
  86. # Enable CUPS to print documents.
  87. # services.printing.enable = true;
  88.  
  89. # Enable the X11 windowing system.
  90. services.xserver.enable = true;
  91. services.xserver.layout = "us";
  92. services.xserver.videoDrivers = [ "nvidiaLegacy340" ];
  93. services.xserver.dpi = 150;
  94.  
  95. hardware.opengl.driSupport32Bit = true;
  96. services.tlp.enable = true;
  97.  
  98. # services.xserver.xkbOptions = "eurosign:e";
  99.  
  100. services.xserver.synaptics.enable = true;
  101. services.xserver.synaptics.twoFingerScroll = true;
  102. services.xserver.synaptics.accelFactor = "0.017";
  103. services.xserver.synaptics.minSpeed = "0.6";
  104. services.xserver.synaptics.maxSpeed = "2.0";
  105. services.xserver.synaptics.scrollDelta = -350;
  106. services.xserver.synaptics.fingersMap = [1 3 2];
  107.  
  108.  
  109. # Enable the KDE Desktop Environment.
  110.  
  111. # KDE5
  112. services.xserver.displayManager.sddm.enable = true;
  113. services.xserver.desktopManager.kde5.enable = true;
  114.  
  115. # Enlightenment
  116. # services.xserver.desktopManager.e19.enable = true;
  117.  
  118. # Gnome3
  119. # services.xserver.displayManager.gdm.enable = true;
  120. # services.xserver.desktopManager.gnome3.enable = true;
  121.  
  122. ## XMonad
  123. # services.xserver.windowManager.xmonad.enable = true;
  124. # services.xserver.windowManager.xmonad.extraPackages = haskellPackages: [
  125. # haskellPackages.xmobar
  126. # ];
  127. # services.xserver.windowManager.xmonad.enableContribAndExtras = true;
  128.  
  129. ## Docker
  130. virtualisation.docker.enable = true;
  131.  
  132. # Define a user account. Don't forget to set a password with ‘passwd’.
  133. users.extraUsers.k2nr = {
  134. home = "/home/k2nr";
  135. isNormalUser = true;
  136. extraGroups = [ "wheel" "docker"];
  137. password = "password";
  138. };
  139.  
  140. # The NixOS release to be compatible with for stateful data such as databases.
  141. system.stateVersion = "16.03";
  142.  
  143. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement