LibertythePoet

LtP nix config

Jul 30th, 2025
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.26 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, on
  3. # https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
  4.  
  5. { config, lib, pkgs, ... }:
  6.  
  7. {
  8. imports =
  9. [ # Include the results of the hardware scan.
  10. ./hardware-configuration.nix
  11. ];
  12.  
  13. # Use the systemd-boot EFI boot loader.
  14. boot.loader.systemd-boot.enable = true;
  15. boot.loader.efi.canTouchEfiVariables = true;
  16.  
  17. networking.hostName = "Athena"; # Define your hostname.
  18. # Pick only one of the below networking options.
  19. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
  20. networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.
  21.  
  22. # Set your time zone.
  23. time.timeZone = "America/New_York";
  24.  
  25. # Configure network proxy if necessary
  26. # networking.proxy.default = "http://user:password@proxy:port/";
  27. # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
  28.  
  29. services.xserver.enable = true;
  30.  
  31. # display manager settings
  32. services.displayManager = {
  33. sddm = {
  34. enable = true;
  35. wayland.enable = true;
  36. theme = "where-is-my-sddm-theme";
  37. };
  38. };
  39.  
  40. # Configure keymap in X11
  41. services.xserver.xkb.layout = "us";
  42.  
  43. # Enable CUPS to print documents.
  44. # services.printing.enable = true;
  45.  
  46. # Enable sound.
  47. # services.pulseaudio.enable = true;
  48. # OR
  49. services.pipewire = {
  50. enable = true;
  51. pulse.enable = true;
  52. };
  53.  
  54. # Enable touchpad support (enabled default in most desktopManager).
  55. services.libinput.enable = true;
  56.  
  57. # Define a user account. Don't forget to set a password with ‘passwd’.
  58. users.users.********** = {
  59. isNormalUser = true;
  60. extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user.
  61. packages = with pkgs; [
  62. tree
  63. ];
  64. };
  65.  
  66.  
  67. # List packages installed in system profile.
  68. # You can use https://search.nixos.org/ to find more packages (and options).
  69. environment.systemPackages = with pkgs; [
  70. neovim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
  71. curl
  72. kdePackages.sddm
  73. kitty
  74. wofi
  75. waybar
  76. nerd-fonts.fira-code
  77. brightnessctl
  78. hyprland
  79. firefox
  80. hyprlock
  81. hypridle
  82. hyprpaper
  83. where-is-my-sddm-theme
  84. ];
  85.  
  86. # Some programs need SUID wrappers, can be configured further or are
  87. # started in user sessions.
  88. # programs.mtr.enable = true;
  89. # programs.gnupg.agent = {
  90. # enable = true;
  91. # enableSSHSupport = true;
  92. # };
  93.  
  94. # List services that you want to enable:
  95.  
  96. # Enable the OpenSSH daemon.
  97. # services.openssh.enable = true;
  98.  
  99. # Open ports in the firewall.
  100. # networking.firewall.allowedTCPPorts = [ ... ];
  101. # networking.firewall.allowedUDPPorts = [ ... ];
  102. # Or disable the firewall altogether.
  103. # networking.firewall.enable = false;
  104.  
  105. # Copy the NixOS configuration file and link it from the resulting system
  106. # (/run/current-system/configuration.nix). This is useful in case you
  107. # accidentally delete configuration.nix.
  108. # system.copySystemConfiguration = true;
  109.  
  110. # This option defines the first version of NixOS you have installed on this particular machine,
  111. # and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions.
  112. #
  113. # Most users should NEVER change this value after the initial install, for any reason,
  114. # even if you've upgraded your system to a new NixOS release.
  115. #
  116. # This value does NOT affect the Nixpkgs version your packages and OS are pulled from,
  117. # so changing it will NOT upgrade your system - see https://nixos.org/manual/nixos/stable/#sec-upgrading for how
  118. # to actually do that.
  119. #
  120. # This value being lower than the current NixOS release does NOT mean your system is
  121. # out of date, out of support, or vulnerable.
  122. #
  123. # Do NOT change this value unless you have manually inspected all the changes it would make to your configuration,
  124. # and migrated your data accordingly.
  125. #
  126. # For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion .
  127. system.stateVersion = "25.05"; # Did you read the comment?
  128.  
  129. }
  130.  
  131.  
Advertisement
Add Comment
Please, Sign In to add comment