Advertisement
Guest User

Untitled

a guest
Apr 10th, 2024
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.21 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. # Bootloader.
  14. boot.loader.systemd-boot.enable = true;
  15. boot.loader.efi.canTouchEfiVariables = true;
  16.  
  17. networking.hostName = "aaspire5"; # Define your hostname.
  18. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
  19.  
  20. # Configure network proxy if necessary
  21. # networking.proxy.default = "http://user:password@proxy:port/";
  22. # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
  23.  
  24. # Enable networking
  25. networking.networkmanager.enable = true;
  26.  
  27. # Set your time zone.
  28. time.timeZone = "America/New_York";
  29.  
  30. # Select internationalisation properties.
  31. i18n.defaultLocale = "en_US.UTF-8";
  32.  
  33. i18n.extraLocaleSettings = {
  34. LC_ADDRESS = "en_US.UTF-8";
  35. LC_IDENTIFICATION = "en_US.UTF-8";
  36. LC_MEASUREMENT = "en_US.UTF-8";
  37. LC_MONETARY = "en_US.UTF-8";
  38. LC_NAME = "en_US.UTF-8";
  39. LC_NUMERIC = "en_US.UTF-8";
  40. LC_PAPER = "en_US.UTF-8";
  41. LC_TELEPHONE = "en_US.UTF-8";
  42. LC_TIME = "en_US.UTF-8";
  43. };
  44.  
  45. # Enable the X11 windowing system.
  46. services.xserver.enable = true;
  47.  
  48. # Enable the KDE Plasma Desktop Environment.
  49. services.xserver.displayManager.sddm.enable = true;
  50. services.xserver.desktopManager.plasma5.enable = true;
  51.  
  52. # Configure keymap in X11
  53. services.xserver = {
  54. layout = "us";
  55. xkbVariant = "";
  56. };
  57.  
  58. # Enable CUPS to print documents.
  59. services.printing.enable = true;
  60.  
  61. # Enable sound with pipewire.
  62. sound.enable = true;
  63. hardware.pulseaudio.enable = false;
  64. security.rtkit.enable = true;
  65. services.pipewire = {
  66. enable = true;
  67. alsa.enable = true;
  68. alsa.support32Bit = true;
  69. pulse.enable = true;
  70. # If you want to use JACK applications, uncomment this
  71. #jack.enable = true;
  72.  
  73. # use the example session manager (no others are packaged yet so this is enabled by default,
  74. # no need to redefine it in your config for now)
  75. #media-session.enable = true;
  76. };
  77.  
  78. # Enable touchpad support (enabled default in most desktopManager).
  79. # services.xserver.libinput.enable = true;
  80.  
  81. # Define a user account. Don't forget to set a password with ‘passwd’.
  82. users.users.avat = {
  83. isNormalUser = true;
  84. description = "$name";
  85. extraGroups = [ "networkmanager" "wheel" ];
  86. packages = with pkgs; [
  87. firefox
  88. kate
  89. # thunderbird
  90. ];
  91. };
  92.  
  93. # Allow unfree packages
  94. nixpkgs.config.allowUnfree = true;
  95.  
  96. # Enable the Flakes feature and the accompanying new nix command-line tool
  97. # nix.settings.experimental-features = [ "nix-command" "flakes" ];
  98. environment.systemPackages = with pkgs; [
  99. # Flakes clones its dependencies through the git command,
  100. # so git must be installed first
  101. git
  102. vim
  103. wget
  104. curl
  105. linux-firmware
  106. ];
  107. # Set the default editor to vim
  108. environment.variables.EDITOR = "vim";
  109.  
  110. # Some programs need SUID wrappers, can be configured further or are
  111. # started in user sessions.
  112. # programs.mtr.enable = true;
  113. # programs.gnupg.agent = {
  114. # enable = true;
  115. # enableSSHSupport = true;
  116. # };
  117.  
  118. # List services that you want to enable:
  119.  
  120. # Enable the OpenSSH daemon.
  121. # services.openssh.enable = true;
  122.  
  123. # Open ports in the firewall.
  124. # networking.firewall.allowedTCPPorts = [ ... ];
  125. # networking.firewall.allowedUDPPorts = [ ... ];
  126. # Or disable the firewall altogether.
  127. # networking.firewall.enable = false;
  128.  
  129. # This value determines the NixOS release from which the default
  130. # settings for stateful data, like file locations and database versions
  131. # on your system were taken. It‘s perfectly fine and recommended to leave
  132. # this value at the release version of the first install of this system.
  133. # Before changing this value read the documentation for this option
  134. # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
  135. system.stateVersion = "23.11"; # Did you read the comment?
  136.  
  137. }
  138.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement