Advertisement
Guest User

Untitled

a guest
Jul 16th, 2016
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.29 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; # Allow download of non-free drivers and other software
  14.  
  15. # Use the GRUB 2 boot loader.
  16. boot.loader.grub.enable = true;
  17. boot.loader.grub.version = 2;
  18.  
  19. # Define on which hard drive you want to install Grub.
  20. boot.loader.grub.device = "/dev/sda";
  21.  
  22. # Boot wireless module
  23. boot.kernelModules = [ "wl" ];
  24.  
  25. # Set default soundcard
  26. boot.extraModprobeConfig = ''
  27. options snd_hda_intel enable=0,1
  28. '';
  29.  
  30. # Download broadcom wifi driver
  31. boot.extraModulePackages = [ config.boot.kernelPackages.broadcom_sta ];
  32. # boot.blacklistedKernelModules=[ "i915" ];
  33.  
  34. networking.hostName = "nixos"; # Define your hostname.
  35. networking.firewall.enable = true;
  36. networking.firewall.allowedTCPPorts = [ 80 443 ];
  37. networking.networkmanager.enable = true;
  38.  
  39. # Rename interfaces to nixen and nixwl (from enp7s0f1 wlp8s0)
  40. services.udev.extraRules = ''
  41. SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="f0:76:1c:35:37:4f", NAME="nixen"
  42. SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="3c:77:e6:fb:80:bd", NAME="nixwl"
  43. '';
  44.  
  45. # Select internationalisation properties.
  46. # i18n = {
  47. # consoleFont = "Lat2-Terminus16";
  48. # consoleKeyMap = "us";
  49. # defaultLocale = "en_US.UTF-8";
  50. # };
  51.  
  52. # Set your time zone.
  53. time.timeZone = "Europe/Athens";
  54.  
  55. # List packages installed in system profile. To search by name, run:
  56. # $ nix-env -qaP | grep wget
  57. environment.systemPackages = with pkgs; [
  58. linuxPackages_3_18.virtualbox
  59. pidgin
  60. steam
  61. glxinfo
  62. shutter
  63. cool-old-term
  64. smplayer
  65. mpv
  66. ntfs3g
  67. wget
  68. vlc
  69. qbittorrent
  70. firefox
  71. python35Packages.livestreamer
  72. kde5.kate
  73. kde4.plasma-nm
  74. kde4.kmix
  75. ];
  76.  
  77. # List services that you want to enable:
  78.  
  79. # Enable the OpenSSH daemon.
  80. services.openssh.enable = true;
  81.  
  82. # Enable CUPS to print documents.
  83. # services.printing.enable = true;
  84.  
  85. # Enable the X11 windowing system.
  86. services.xserver.enable = true;
  87. services.xserver.layout = "us";
  88. # services.xserver.xkbOptions = "eurosign:e";
  89.  
  90. # Enable the KDE Desktop Environment.
  91. services.xserver.displayManager.sddm.enable = true;
  92. services.xserver.desktopManager.kde5.enable = true;
  93. # services.xserver.videoDrivers = [ "nvidiaBeta" ];
  94.  
  95. hardware.opengl.driSupport32Bit = true;
  96. hardware.bluetooth.enable = true;
  97. hardware.bumblebee.enable = true;
  98. hardware.bumblebee.connectDisplay = true;
  99.  
  100. # Define a user account. Don't forget to set a password with ‘passwd’.
  101. users.extraUsers.greygoo = {
  102. isNormalUser = true;
  103. uid = 1000;
  104. description = "GREYGOO";
  105. extraGroups = [ "wheel" "audio" "video" "cdrom" "networkmanager" ];
  106. initialPassword = "silence";
  107. };
  108.  
  109. security.sudo = {
  110. enable = true;
  111. wheelNeedsPassword = false;
  112. };
  113.  
  114. # The NixOS release to be compatible with for stateful data such as databases.
  115. system.stateVersion = "16.03";
  116.  
  117. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement