Ilya_konstantinov

Untitled

Aug 20th, 2026
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.38 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, lib,... }:
  6. let
  7. unstable = import (builtins.fetchTarball {
  8. url = "https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz";
  9. }) { config.allowUnfree = true; };
  10. in
  11. {
  12. imports =
  13. [ # Include the results of the hardware scan.
  14. ./hardware-configuration.nix
  15. # <home-manager/nixos>
  16. ];
  17.  
  18. # Bootloader.
  19. boot.loader.systemd-boot.enable = true;
  20. boot.loader.efi.canTouchEfiVariables = true;
  21. boot.kernelParams = [ "amdgpu.dcdebugmask=0x10" ];
  22. networking.hostName = "nixos"; # Define your hostname.
  23. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
  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. # Enable networking
  30. networking.networkmanager.enable = true;
  31.  
  32. # Set your time zone.
  33. time.timeZone = "Europe/Moscow";
  34.  
  35. # Select internationalisation properties.
  36. i18n.defaultLocale = "en_US.UTF-8";
  37. # ssl-cert-file = /nix/store/ajmbzizy2src5485z0lkhvarapq70wwg-etc/etc/ssl/certs/ca-bundle.crt;
  38. i18n.extraLocaleSettings = {
  39. LC_ADDRESS = "ru_RU.UTF-8";
  40. LC_IDENTIFICATION = "ru_RU.UTF-8";
  41. LC_MEASUREMENT = "ru_RU.UTF-8";
  42. LC_MONETARY = "ru_RU.UTF-8";
  43. LC_NAME = "ru_RU.UTF-8";
  44. LC_NUMERIC = "ru_RU.UTF-8";
  45. LC_PAPER = "ru_RU.UTF-8";
  46. LC_TELEPHONE = "ru_RU.UTF-8";
  47. LC_TIME = "ru_RU.UTF-8";
  48. };
  49.  
  50. # Enable the X11 windowing system.
  51. # You can disable this if you're only using the Wayland session.
  52. services.xserver.enable = true;
  53.  
  54. # Enable the KDE Plasma Desktop Environment.
  55. services.displayManager.sddm.enable = true;
  56. services.desktopManager.plasma6.enable = true;
  57.  
  58. # Configure keymap in X11
  59. services.xserver = {
  60. xkb = {
  61. layout = "us,ru"; # Keyboard layouts
  62. variant = "euro"; # Variant for the US layout
  63. options = "grp:win_space_toggle"; # Set Alt + Shift to toggle layouts
  64. };
  65. };
  66. # Enable CUPS to print documents.
  67. services.printing.enable = true;
  68.  
  69. # Enable sound with pipewire.
  70. services.pulseaudio.enable = false;
  71. security.rtkit.enable = true;
  72. services.pipewire = {
  73. enable = true;
  74. alsa.enable = true;
  75. alsa.support32Bit = true;
  76. pulse.enable = true;
  77. # If you want to use JACK applications, uncomment this
  78. #jack.enable = true;
  79.  
  80. # use the example session manager (no others are packaged yet so this is enabled by default,
  81. # no need to redefine it in your config for now)
  82. #media-session.enable = true;
  83. };
  84.  
  85. # Enable touchpad support (enabled default in most desktopManager).
  86. # services.xserver.libinput.enable = true;
  87.  
  88. # Define a user account. Don't forget to set a password with ‘passwd’.
  89. users.users.owner = {
  90. isNormalUser = true;
  91. description = "owner";
  92. extraGroups = [ "networkmanager" "wheel" ];
  93. packages = with pkgs; [
  94. kdePackages.kate
  95. thunderbird
  96. ];
  97. # home-manager.config = import /home/owner/.config/home-manager/home.nix;
  98. };
  99. hardware.bluetooth.enable = true;
  100. # hardware.bluetooth.powerOnBoot = true; # Включить при загрузке
  101.  
  102. services.blueman.enable = true; # Менеджер Bluetooth (GUI)
  103. # Важно для A2DP профиля
  104. hardware.bluetooth.settings = {
  105. General = {
  106. Experimental = false; # Для поддержки большего числа кодеков
  107. };
  108. };
  109. programs.yazi.enable = true;
  110. # Install firefox.
  111. programs.firefox.enable = true;
  112. hardware.opentabletdriver.enable = true;
  113.  
  114. # Allow unfree packages
  115. nixpkgs.config.allowUnfree = true;
  116. nix.settings.experimental-features = [ "nix-command" "flakes" ];
  117. # nixpkgs.overlays = [
  118. # (final: prev: {
  119. # vscode-unstable = (import (builtins.fetchTarball {
  120. # url = "https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz";
  121. # }) { config.allowUnfree = true; }).vscode;
  122. # })
  123. #];
  124. # services.vscode-server.enable = true;
  125. environment.plasma6.excludePackages = with pkgs.kdePackages; [
  126. baloo
  127. baloo-widgets
  128. kfilemetadata # ← добавь это, часто тянется автоматически
  129. ];
  130.  
  131. systemd.user.services = {
  132. "plasma-baloo" = lib.mkForce { enable = false; };
  133. "plasma-baloorunner" = lib.mkForce { enable = false; };
  134. "kde-baloo" = lib.mkForce { enable = false; };
  135. "baloo_file" = lib.mkForce { enable = false; };
  136. };
  137.  
  138. # List packages installed in system profile. To search, run:
  139. environment.systemPackages = with pkgs; [
  140. exfatprogs
  141. dosfstools
  142. qemu
  143. xournalpp
  144. thunderbird
  145. ghc
  146. haskellPackages.stack
  147. cabal-install
  148. haskell-language-server
  149. exiftool
  150. gnuplot
  151. fd
  152. qbittorrent
  153. sing-box
  154. mlocate
  155. mpv
  156. asciinema_3
  157. libreoffice-qt-fresh
  158. byedpi
  159. zapret
  160. steam
  161. mtr
  162. home-manager
  163. # Editors
  164. vim # A powerful text editor
  165. nano # A simple text editor
  166. # vscode-unstable # Visual Studio Code
  167. kitty
  168. keepassxc
  169. vivaldi
  170. unstable.vscode-fhs
  171. # vscode-fhs
  172. # vscodium
  173. # Development Tools
  174. clang # C and C++ compiler
  175. clang-tools # Additional Clang tools
  176. docker # Containerization platform
  177.  
  178. # Network tools
  179. wget # Command-line utility for downloading files
  180. curl # Tool for transferring data with URLs
  181. git # Version control system
  182.  
  183. # Utilities
  184. htop # Interactive process viewer
  185. tmux # Terminal multiplexer for managing multiple terminal sessions
  186. tree # View directory structure as a tree
  187. zsh
  188. oh-my-zsh
  189. texliveFull
  190. wineWowPackages.wayland
  191. jellyfin-ffmpeg
  192.  
  193. # Communication
  194. telegram-desktop # Telegram desktop client
  195. firefox # Web browser
  196. thunderbird # Email client
  197.  
  198. # Additional Development Utilities
  199. python3 # Python programming language
  200. nodejs # Node.js for JavaScript development
  201. gcc # GNU Compiler Collection
  202. gnumake # Utility for build automation
  203. cmake
  204. ihaskell
  205. # File Management
  206. zip # Tool for creating and extracting zip files
  207. unrar # Tool for extracting RAR files
  208. p7zip
  209. ];
  210.  
  211. services.udisks2.enable = true;
  212. services.gvfs.enable = true;
  213.  
  214.  
  215. programs.zsh.enable = true;
  216. # Внесите в секцию system-wide конфигурации
  217. programs.steam = {
  218. enable = true;
  219. # Дополнительные опции при необходимости:
  220. remotePlay.openFirewall = true;
  221. dedicatedServer.openFirewall = true;
  222. # Включите сессии Gamescope для лучшей совместимости[citation:1]:
  223. gamescopeSession.enable = true;
  224. };
  225.  
  226. nix.settings = {
  227. ssl-cert-file = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt";
  228. # ssl-cert-file = "/nix/store/ajmbzizy2src5485z0lkhvarapq70wwg-etc/etc/ssl/certs/ca-bundle.crt";
  229. };
  230.  
  231. # Some programs need SUID wrappers, can be configured further or are
  232. # started in user sessions.
  233. # programs.mtr.enable = true;
  234. # programs.gnupg.agent = {
  235. # enable = true;
  236. # enableSSHSupport = true;
  237. # };
  238.  
  239. # List services that you want to enable:
  240.  
  241. # Enable the OpenSSH daemon.
  242. # services.openssh.enable = true;
  243.  
  244. # Open ports in the firewall.
  245. # networking.firewall.allowedTCPPorts = [ ... ];
  246. # networking.firewall.allowedUDPPorts = [ ... ];
  247. # Or disable the firewall altogether.
  248. # networking.firewall.enable = false;
  249.  
  250. # This value determines the NixOS release from which the default
  251. # settings for stateful data, like file locations and database versions
  252. # on your system were taken. It‘s perfectly fine and recommended to leave
  253. # this value at the release version of the first install of this system.
  254. # Before changing this value read the documentation for this option
  255. # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
  256. system.stateVersion = "25.11"; # Did you read the comment?
  257.  
  258. }
Add Comment
Please, Sign In to add comment