Guest User

Untitled

a guest
Feb 25th, 2021
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.14 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. # List packages installed in system profile. To search, run:
  16. # $ nix search wget
  17. environment.systemPackages = with pkgs; [
  18. firefox
  19. kate
  20. plasma-pa
  21. pavucontrol
  22. kdeconnect
  23. gparted
  24. wget
  25. curl
  26. nomacs
  27. mate.atril
  28. ark
  29. libnotify
  30. vlc
  31. libreoffice-fresh
  32. jetbrains.rider
  33. jetbrains.idea-ultimate
  34. clementine
  35. konversation
  36. libsForQt5.kauth
  37. seafile-client
  38. jre8
  39. jdk
  40. ];
  41.  
  42. virtualisation.docker.enable = true;
  43. virtualisation.anbox.enable = true;
  44.  
  45. programs.java.enable = true;
  46. programs.adb.enable = true;
  47.  
  48. # Use the systemd-boot EFI boot loader.
  49. # boot.loader.systemd-boot.enable = true;
  50. boot = {
  51. loader = {
  52. grub.enable = true;
  53. grub.efiSupport = true;
  54. grub.devices = [ "nodev" ];
  55. efi.canTouchEfiVariables = true;
  56. # efi.efiSysMountPoint = "/boot/EFI"; # optional
  57. };
  58. };
  59.  
  60. # networking.hostName = "nixos"; # Define your hostname.
  61. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
  62.  
  63. # Set your time zone.
  64. time.timeZone = "Europe/Berlin";
  65.  
  66. # The global useDHCP flag is deprecated, therefore explicitly set to false here.
  67. # Per-interface useDHCP will be mandatory in the future, so this generated config
  68. # replicates the default behaviour.
  69. networking.useDHCP = false;
  70. networking.interfaces.enp5s0.useDHCP = true;
  71. networking.hostName = "BigChungus"; # Define your hostname.
  72. networking.networkmanager.enable = true;
  73. networking.firewall.enable = false;
  74. networking.networkmanager.unmanaged = [ "docker0" "virbr0" "anbox0" ];
  75. #networking.firewall.allowedTCPPortRanges = [ { from = 1714; to = 1764; } ];
  76. #networking.firewall.allowedUDPPortRanges = [ { from = 1714; to = 1764; } ];
  77.  
  78.  
  79. # networking.interfaces.wlp3s0.useDHCP = true;
  80.  
  81.  
  82. # Configure network proxy if necessary
  83. # networking.proxy.default = "http://user:password@proxy:port/";
  84. # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
  85.  
  86. # Select internationalisation properties.
  87. # i18n.defaultLocale = "en_US.UTF-8";
  88. # console = {
  89. # font = "Lat2-Terminus16";
  90. # keyMap = "us";
  91. # };
  92.  
  93. services.xserver = {
  94. enable = true;
  95. layout = "us";
  96. libinput.enable = true;
  97. desktopManager = {
  98. plasma5.enable = true;
  99. };
  100. displayManager.defaultSession = "plasma5";
  101. displayManager.sddm = {
  102. enable = true;
  103. # wayland = false;
  104. };
  105. # displayManager.auto = {
  106. # enable = false;
  107. # user = "deckweiss";
  108. # };
  109. videoDrivers = [ "nvidia" ];
  110. };
  111.  
  112. users.users.deckweiss = {
  113. isNormalUser = true;
  114. extraGroups = [ "wheel" "networkmanager" ]; # Enable ‘sudo’ for the user.
  115. };
  116.  
  117. # Configure keymap in X11
  118. # services.xserver.layout = "us";
  119. # services.xserver.xkbOptions = "eurosign:e";
  120.  
  121. # Enable CUPS to print documents.
  122. # services.printing.enable = true;
  123.  
  124. # Enable sound.
  125. sound.enable = true;
  126. hardware.pulseaudio.enable = false;
  127. programs.dconf.enable = true;
  128. # Not strictly required but pipewire will use rtkit if it is present
  129. security.rtkit.enable = true;
  130. services.pipewire = {
  131. enable = true;
  132. # Compatibility shims, adjust according to your needs
  133. alsa.enable = true;
  134. alsa.support32Bit = true;
  135. pulse.enable = true;
  136. jack.enable = true;
  137. };
  138.  
  139. # Enable touchpad support (enabled default in most desktopManager).
  140. # services.xserver.libinput.enable = true;
  141.  
  142. # Define a user account. Don't forget to set a password with ‘passwd’.
  143. # users.users.jane = {
  144. # isNormalUser = true;
  145. # extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user.
  146. # };
  147.  
  148. # Some programs need SUID wrappers, can be configured further or are
  149. # started in user sessions.
  150. # programs.mtr.enable = true;
  151. # programs.gnupg.agent = {
  152. # enable = true;
  153. # enableSSHSupport = true;
  154. # };
  155.  
  156. # List services that you want to enable:
  157.  
  158. # Enable the OpenSSH daemon.
  159. # services.openssh.enable = true;
  160.  
  161. # Open ports in the firewall.
  162. # networking.firewall.allowedTCPPorts = [ ... ];
  163. # networking.firewall.allowedUDPPorts = [ ... ];
  164. # Or disable the firewall altogether.
  165. # networking.firewall.enable = false;
  166.  
  167. # This value determines the NixOS release from which the default
  168. # settings for stateful data, like file locations and database versions
  169. # on your system were taken. It‘s perfectly fine and recommended to leave
  170. # this value at the release version of the first install of this system.
  171. # Before changing this value read the documentation for this option
  172. # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
  173. system.stateVersion = "21.05"; # Did you read the comment?
  174.  
  175. }
  176.  
  177.  
Add Comment
Please, Sign In to add comment