Advertisement
reaperhacknslash

configuration.nix (amd)

May 30th, 2024 (edited)
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.63 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. # AMDGPU
  14. services.xserver.videoDrivers = [ "amdgpu" ];
  15. # Flatpak Configuration
  16. services.flatpak.enable = true;
  17. # Bluetooth COnfiguration
  18. hardware.bluetooth.enable = true; # enables support for Bluetooth
  19. hardware.bluetooth.powerOnBoot = true; # powers up the default Bluetooth controller on boot
  20. # Bootloader.
  21. boot.kernelPackages = pkgs.linuxPackages_latest;
  22. boot.loader.systemd-boot.enable = true;
  23. boot.loader.efi.canTouchEfiVariables = true;
  24.  
  25. networking.hostName = "NixOS-Beelink"; # Define your hostname.
  26. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
  27. # Steam Configuration
  28. programs.steam = {
  29. enable = true;
  30. package = with pkgs; steam.override { extraPkgs = pkgs: [ attr ]; };
  31. };
  32. # NixOS Auto Upgrade
  33. system.autoUpgrade.enable = true;
  34. system.autoUpgrade.allowReboot = true;
  35. # Configure network proxy if necessary
  36. # networking.proxy.default = "http://user:password@proxy:port/";
  37. # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
  38.  
  39. # Enable networking
  40. networking.networkmanager.enable = true;
  41.  
  42. # Set your time zone.
  43. time.timeZone = "America/Moncton";
  44. time.hardwareClockInLocalTime = true;
  45. # Select internationalisation properties.
  46. i18n.defaultLocale = "en_CA.UTF-8";
  47.  
  48. # Enable the X11 windowing system.
  49. services.xserver.enable = true;
  50.  
  51. # Enable the KDE Plasma Desktop Environment.
  52. services.xserver.displayManager.sddm.enable = true;
  53. services.xserver.desktopManager.plasma6.enable = true;
  54.  
  55. # Configure keymap in X11
  56. services.xserver = {
  57. layout = "us";
  58. xkbVariant = "";
  59. };
  60.  
  61. # Enable CUPS to print documents.
  62. services.printing.enable = true;
  63.  
  64. # Enable sound with pipewire.
  65. sound.enable = true;
  66. hardware.pulseaudio.enable = false;
  67. security.rtkit.enable = true;
  68. services.pipewire = {
  69. enable = true;
  70. alsa.enable = true;
  71. alsa.support32Bit = true;
  72. pulse.enable = true;
  73. # If you want to use JACK applications, uncomment this
  74. #jack.enable = true;
  75.  
  76. # use the example session manager (no others are packaged yet so this is enabled by default,
  77. # no need to redefine it in your config for now)
  78. #media-session.enable = true;
  79. };
  80.  
  81. # Enable touchpad support (enabled default in most desktopManager).
  82. # services.xserver.libinput.enable = true;
  83.  
  84. # Define a user account. Don't forget to set a password with ‘passwd’.
  85. users.users.crypticexile = {
  86. isNormalUser = true;
  87. description = "crypticexile";
  88. extraGroups = [ "networkmanager" "wheel" ];
  89. packages = with pkgs; [
  90. kate
  91. # thunderbird
  92. ];
  93. };
  94.  
  95. # Install firefox.
  96. programs.firefox.enable = true;
  97.  
  98. # Allow unfree packages
  99. nixpkgs.config.allowUnfree = true;
  100.  
  101. # List packages installed in system profile. To search, run:
  102. # $ nix search wget
  103. environment.systemPackages = with pkgs; [
  104. # vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
  105. # wget
  106. discord
  107. cava
  108. obs-studio
  109. vlc
  110. steam
  111. gparted
  112. mc
  113. inxi
  114. kitty
  115. fastfetch
  116. git
  117. shotcut
  118. gimp
  119. deja-dup
  120. toybox
  121. papirus-icon-theme
  122. ];
  123.  
  124. # Some programs need SUID wrappers, can be configured further or are
  125. # started in user sessions.
  126. # programs.mtr.enable = true;
  127. # programs.gnupg.agent = {
  128. # enable = true;
  129. # enableSSHSupport = true;
  130. # };
  131.  
  132. # List services that you want to enable:
  133.  
  134. # Enable the OpenSSH daemon.
  135. # services.openssh.enable = true;
  136.  
  137. # Open ports in the firewall.
  138. # networking.firewall.allowedTCPPorts = [ ... ];
  139. # networking.firewall.allowedUDPPorts = [ ... ];
  140. # Or disable the firewall altogether.
  141. # networking.firewall.enable = false;
  142.  
  143. # This value determines the NixOS release from which the default
  144. # settings for stateful data, like file locations and database versions
  145. # on your system were taken. It‘s perfectly fine and recommended to leave
  146. # this value at the release version of the first install of this system.
  147. # Before changing this value read the documentation for this option
  148. # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
  149. system.stateVersion = "23.11"; # Did you read the comment?
  150.  
  151. }
  152.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement