Advertisement
Guest User

Untitled

a guest
Jul 3rd, 2016
1,031
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.70 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. # Define on which hard drive you want to install Grub.
  19. boot.loader.grub.device = "/dev/sda";
  20. boot.extraModprobeConfig = ''
  21. options snd_hda_intel enable=0,1
  22. '';
  23. # boot.blacklistedKernelModules=[ "i915" ];
  24.  
  25. networking.hostName = "nixos"; # Define your hostname.
  26. networking.firewall.enable = true;
  27. networking.firewall.allowedTCPPorts = [ 80 443 ];
  28. networking.networkmanager.enable = true;
  29.  
  30. # Select internationalisation properties.
  31. # i18n = {
  32. # consoleFont = "Lat2-Terminus16";
  33. # consoleKeyMap = "us";
  34. # defaultLocale = "en_US.UTF-8";
  35. # };
  36.  
  37. # Set your time zone.
  38. time.timeZone = "Europe/Athens";
  39.  
  40. # List packages installed in system profile. To search by name, run:
  41. # $ nix-env -qaP | grep wget
  42. environment.systemPackages = with pkgs; [
  43. steam
  44. glxinfo
  45. shutter
  46. cool-old-term
  47. smplayer
  48. mpv
  49. ntfs3g
  50. wget
  51. htop
  52. vlc
  53. qbittorrent
  54. firefox
  55. python35Packages.livestreamer
  56. kde5.kate
  57. kde4.plasma-nm
  58. ];
  59.  
  60. # List services that you want to enable:
  61.  
  62. # Enable the OpenSSH daemon.
  63. services.openssh.enable = true;
  64.  
  65. # Enable CUPS to print documents.
  66. # services.printing.enable = true;
  67.  
  68. # Enable the X11 windowing system.
  69. services.xserver.enable = true;
  70. services.xserver.layout = "us";
  71. # services.xserver.xkbOptions = "eurosign:e";
  72.  
  73. # Enable the KDE Desktop Environment.
  74. services.xserver.displayManager.sddm.enable = true;
  75. services.xserver.desktopManager.kde5.enable = true;
  76.  
  77. hardware.opengl.driSupport32Bit = true;
  78. hardware.bluetooth.enable = true;
  79. hardware.bumblebee.enable = true;
  80. hardware.bumblebee.connectDisplay = true;
  81.  
  82. # Define a user account. Don't forget to set a password with ‘passwd’.
  83. users.extraUsers.greygoo = {
  84. isNormalUser = true;
  85. uid = 1000;
  86. description = "GREYGOO";
  87. extraGroups = [ "wheel" "audio" "video" "cdrom" "networkmanager" ];
  88. initialPassword = "silence";
  89. };
  90.  
  91. security.sudo = {
  92. enable = true;
  93. wheelNeedsPassword = false;
  94. };
  95.  
  96. # The NixOS release to be compatible with for stateful data such as databases.
  97. system.stateVersion = "16.03";
  98.  
  99. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement