Guest User

Untitled

a guest
Mar 28th, 2018
346
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.50 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. # Enable automatic updating of the system
  9. system.autoUpgrade.enable = true;
  10.  
  11. imports =
  12. [ # Include the results of the hardware scan.
  13. ./hardware-configuration.nix
  14. ];
  15.  
  16. # Use the systemd-boot EFI boot loader.
  17. boot.loader.systemd-boot.enable = true;
  18. boot.loader.efi.canTouchEfiVariables = true;
  19.  
  20. networking.hostName = "nixos"; # Define your hostname.
  21. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
  22.  
  23. # Select internationalisation properties.
  24. # i18n = {
  25. # consoleFont = "Lat2-Terminus16";
  26. # consoleKeyMap = "us";
  27. # defaultLocale = "en_US.UTF-8";
  28. # };
  29.  
  30. # Set your time zone.
  31. # time.timeZone = "Europe/Amsterdam";
  32.  
  33. # List packages installed in system profile. To search by name, run:
  34. # $ nix-env -qaP | grep wget
  35. nixpkgs.config.allowUnfree = true;
  36. environment.systemPackages = with pkgs; [
  37. wget
  38. curl
  39.  
  40. #spotify currently broken
  41. mopidy
  42. mopidy-spotify
  43. mopidy-iris
  44. mopidy-local-sqlite
  45. mopidy-mopify
  46.  
  47. firefox
  48. chromium
  49. qbittorrent
  50. mpv
  51. anki
  52. calibre
  53. steam
  54.  
  55. vim
  56. vscode
  57. docker
  58. go
  59. nodejs
  60.  
  61. openconnect
  62. networkmanager_openconnect
  63. ];
  64.  
  65. # Some programs need SUID wrappers, can be configured further or are
  66. # started in user sessions.
  67. programs.bash.enableCompletion = true;
  68. # programs.mtr.enable = true;
  69. # programs.gnupg.agent = { enable = true; enableSSHSupport = true; };
  70.  
  71. # List services that you want to enable:
  72.  
  73. # Enable the OpenSSH daemon.
  74. # services.openssh.enable = true;
  75.  
  76. # Open ports in the firewall.
  77. # networking.firewall.allowedTCPPorts = [ ... ];
  78. # networking.firewall.allowedUDPPorts = [ ... ];
  79. # Or disable the firewall altogether.
  80. # networking.firewall.enable = false;
  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. # nvidia
  91. services.xserver.videoDrivers = [ "nvidia" ];
  92. hardware.opengl.driSupport32Bit = true;
  93.  
  94. # Enable touchpad support.
  95. # services.xserver.libinput.enable = true;
  96.  
  97. # Enable the KDE Desktop Environment.
  98. services.xserver.displayManager.sddm.enable = true;
  99. services.xserver.desktopManager.plasma5.enable = true;
  100.  
  101. # Define a user account. Don't forget to set a password with ‘passwd’.
  102. programs.fish.enable = true;
  103. users.extraUsers.ben = {
  104. isNormalUser = true;
  105. home = "/home/ben";
  106. description = "Ben Barclay";
  107. extraGroups = [ "wheel" "networkmanager" "audio" ];
  108. shell = "/run/current-system/sw/bin/fish";
  109. uid = 1000;
  110. };
  111.  
  112. # Audio
  113. hardware.pulseaudio.enable = true;
  114. hardware.pulseaudio.support32Bit = true;
  115.  
  116. # Mopidy
  117. services.mopidy = {
  118. enable = true;
  119. extensionPackages = [
  120. pkgs.mopidy-spotify
  121. pkgs.mopidy-local-sqlite
  122. pkgs.mopidy-iris
  123. pkgs.mopidy-mopify
  124. ];
  125. configuration = ''
  126. [spotify]
  127. username = ben
  128. password = fake
  129. '';
  130. };
  131.  
  132. # This value determines the NixOS release with which your system is to be
  133. # compatible, in order to avoid breaking some software such as database
  134. # servers. You should change this only after NixOS release notes say you
  135. # should.
  136. system.stateVersion = "17.09"; # Did you read the comment?
  137.  
  138. }
Add Comment
Please, Sign In to add comment