Guest User

Untitled

a guest
Jun 1st, 2020
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.39 KB | None | 0 0
  1. { config, pkgs, ... }:
  2.  
  3. {
  4. imports =
  5. [ # Include the results of the hardware scan.
  6. ./hardware-configuration.nix
  7. ./keybase.nix
  8. ./cachix.nix
  9. ];
  10.  
  11. # Use the systemd-boot EFI boot loader.
  12. boot.loader.systemd-boot.enable = true;
  13. boot.loader.efi.canTouchEfiVariables = true;
  14.  
  15. networking.hostName = "nixos"; # Define your hostname.
  16. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
  17.  
  18. # The global useDHCP flag is deprecated, therefore explicitly set to false here.
  19. # Per-interface useDHCP will be mandatory in the future, so this generated config
  20. # replicates the default behaviour.
  21. networking.useDHCP = false;
  22. networking.interfaces.enp2s0.useDHCP = true;
  23. networking.interfaces.wlp4s0.useDHCP = true;
  24.  
  25. networking.networkmanager.enable = true;
  26. hardware.enableRedistributableFirmware = true;
  27.  
  28.  
  29.  
  30.  
  31. let
  32. all-hies = import (fetchTarball "https://github.com/infinisil/all-hies/tarball/master") {};
  33. in
  34. {
  35. # List packages installed in system profile. To search, run:
  36. # $ nix search wget
  37. environment.systemPackages = with pkgs; [
  38. brave
  39. clawsMail
  40. # discord
  41. ghc
  42. git
  43. google-chrome
  44. gzip
  45. wget vim
  46. firefox
  47. kbfs
  48. keybase
  49. keybase-gui
  50. nodejs-12_x
  51. nodePackages.typescript
  52. # nodePackages.expo-cli
  53. # pgadmin
  54. postgis
  55. postgresql
  56. quassel
  57. stack
  58. slack
  59. tdesktop
  60. unzip
  61. vscode
  62. zip
  63. zoom-us
  64.  
  65.  
  66. # [
  67. # Install stable HIE for GHC 8.6.4, 8.6.3 and 8.4.3
  68. (all-hies.selection { selector = p: { inherit (p) ghc864 ghc863 ghc843; }; })
  69. # ];
  70.  
  71. ];
  72. }
  73.  
  74. nixpkgs.config.allowUnfree = true;
  75.  
  76.  
  77.  
  78. # List services that you want to enable:
  79.  
  80. # Enable the OpenSSH daemon.
  81. services.openssh.enable = true;
  82.  
  83. # Open ports in the firewall.
  84. # networking.firewall.allowedTCPPorts = [ ... ];
  85. # networking.firewall.allowedUDPPorts = [ ... ];
  86. # Or disable the firewall altogether.
  87. # networking.firewall.enable = false;
  88.  
  89. # Enable CUPS to print documents.
  90. services.printing.enable = true;
  91.  
  92. # Enable sound.
  93. sound.enable = true;
  94. hardware.pulseaudio.enable = true;
  95. hardware.bluetooth.enable = true;
  96. services.blueman.enable = true;
  97.  
  98. # Enable the X11 windowing system.
  99. services.xserver.enable = true;
  100. services.xserver.layout = "us";
  101. services.xserver.xkbOptions = "eurosign:e";
  102.  
  103. # Enable touchpad support.
  104. services.xserver.libinput.enable = true;
  105.  
  106. # Enable the KDE Desktop Environment.
  107. services.xserver.displayManager.sddm.enable = true;
  108. services.xserver.desktopManager.plasma5.enable = true;
  109.  
  110. # Define a user account. Don't forget to set a password with ‘passwd’.
  111. users.users.level = {
  112. isNormalUser = true;
  113. extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user.
  114. };
  115.  
  116. security.sudo.wheelNeedsPassword = false;
  117.  
  118. # This value determines the NixOS release from which the default
  119. # settings for stateful data, like file locations and database versions
  120. # on your system were taken. It‘s perfectly fine and recommended to leave
  121. # this value at the release version of the first install of this system.
  122. # Before changing this value read the documentation for this option
  123. # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
  124. system.stateVersion = "20.03"; # Did you read the comment?
  125.  
  126. }
Add Comment
Please, Sign In to add comment