Guest User

Untitled

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