Advertisement
Guest User

Untitled

a guest
Nov 12th, 2019
337
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.17 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. system.autoUpgrade.enable = true;
  16. system.autoUpgrade.channel = "https://nixos.org/channels/nixos-19.09";
  17.  
  18. hardware.pulseaudio.enable = true;
  19.  
  20. # Use the systemd-boot EFI boot loader.
  21. boot.loader.systemd-boot.enable = true;
  22. boot.loader.efi.canTouchEfiVariables = true;
  23. boot.initrd.kernelModules = ["wl"];
  24. boot.extraModulePackages = [ config.boot.kernelPackages.broadcom_sta ];
  25. # boot.kernelParams = [ "iommu=soft" ];
  26. boot.plymouth.enable = true;
  27. boot.kernelPackages = pkgs.linuxPackages_5_2;
  28.  
  29. networking.hostName = "<censored>"; # Define your hostname.
  30. networking.networkmanager.enable = true;
  31.  
  32. # Select internationalisation properties.
  33. # i18n = {
  34. # consoleFont = "Lat2-Terminus16";
  35. # consoleKeyMap = "us";
  36. # defaultLocale = "en_US.UTF-8";
  37. # };
  38.  
  39. # Set your time zone.
  40. time.timeZone = "Europe/Amsterdam";
  41.  
  42. # List packages installed in system profile. To search by name, run:
  43. # $ nix-env -qaP | grep wget
  44. environment.systemPackages = with pkgs; [
  45. wget
  46. vim
  47. firefox
  48. discord
  49. thunderbird
  50. glxinfo
  51. keepass
  52. git
  53. kate
  54. gparted
  55. woeusb
  56. steam
  57. xscreensaver
  58. ark
  59. gnumake
  60. pciutils
  61. shutter
  62. krita
  63. vscodium
  64. alarm-clock-applet
  65. riot-desktop
  66. quaternion
  67. remmina
  68. gimp
  69. okular
  70. ];
  71.  
  72. # List services that you want to enable:
  73.  
  74. # Enable the OpenSSH daemon.
  75. # services.openssh.enable = true;
  76.  
  77. # Open ports in the firewall.
  78. # networking.firewall.allowedTCPPorts = [ ... ];
  79. # networking.firewall.allowedUDPPorts = [ ... ];
  80. # Or disable the firewall altogether.
  81. # networking.firewall.enable = false;
  82.  
  83. # Enable CUPS to print documents.
  84. # services.printing.enable = true;
  85.  
  86. # Enable the X11 windowing system.
  87. #
  88. services.xserver.enable = true;
  89. # services.xserver.layout = "us";
  90. # services.xserver.xkbOptions = "eurosign:e";
  91. services.xserver.inputClassSections = [''
  92. Identifier "pointer"
  93. Driver "evdev"
  94. MatchUSBID "046d:c069"
  95. Option "ButtonMapping" "1 3 2"
  96. ''
  97. ];
  98.  
  99. #displayManager.sessionCommands = ''
  100. # xscreensaver -no-splash &
  101. # '';
  102.  
  103. hardware.opengl.driSupport32Bit = true;
  104.  
  105. # Enable the KDE Desktop Environment.
  106. services.xserver.displayManager.sddm.enable = true;
  107. services.xserver.desktopManager.plasma5.enable = true;
  108.  
  109. services.earlyoom = {
  110. enable = true;
  111. freeMemThreshold = 5;
  112. };
  113.  
  114. # Define a user account. Don't forget to set a password with ‘passwd’.
  115. users.extraUsers.werner = {
  116. isNormalUser = true;
  117. uid = 1000;
  118. extraGroups = [ "wheel" "networkmanager" "audio" ];
  119. };
  120.  
  121. # The NixOS release to be compatible with for stateful data such as databases.
  122. system.stateVersion = "17.03";
  123.  
  124. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement