Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Edit this configuration file to define what should be installed on
- # your system. Help is available in the configuration.nix(5) man page
- # and in the NixOS manual (accessible by running ‘nixos-help’).
- { config, pkgs, lib,... }:
- let
- unstable = import (builtins.fetchTarball {
- url = "https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz";
- }) { config.allowUnfree = true; };
- in
- {
- imports =
- [ # Include the results of the hardware scan.
- ./hardware-configuration.nix
- # <home-manager/nixos>
- ];
- # Bootloader.
- boot.loader.systemd-boot.enable = true;
- boot.loader.efi.canTouchEfiVariables = true;
- boot.kernelParams = [ "amdgpu.dcdebugmask=0x10" ];
- networking.hostName = "nixos"; # Define your hostname.
- # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
- # Configure network proxy if necessary
- # networking.proxy.default = "http://user:password@proxy:port/";
- # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
- # Enable networking
- networking.networkmanager.enable = true;
- # Set your time zone.
- time.timeZone = "Europe/Moscow";
- # Select internationalisation properties.
- i18n.defaultLocale = "en_US.UTF-8";
- # ssl-cert-file = /nix/store/ajmbzizy2src5485z0lkhvarapq70wwg-etc/etc/ssl/certs/ca-bundle.crt;
- i18n.extraLocaleSettings = {
- LC_ADDRESS = "ru_RU.UTF-8";
- LC_IDENTIFICATION = "ru_RU.UTF-8";
- LC_MEASUREMENT = "ru_RU.UTF-8";
- LC_MONETARY = "ru_RU.UTF-8";
- LC_NAME = "ru_RU.UTF-8";
- LC_NUMERIC = "ru_RU.UTF-8";
- LC_PAPER = "ru_RU.UTF-8";
- LC_TELEPHONE = "ru_RU.UTF-8";
- LC_TIME = "ru_RU.UTF-8";
- };
- # Enable the X11 windowing system.
- # You can disable this if you're only using the Wayland session.
- services.xserver.enable = true;
- # Enable the KDE Plasma Desktop Environment.
- services.displayManager.sddm.enable = true;
- services.desktopManager.plasma6.enable = true;
- # Configure keymap in X11
- services.xserver = {
- xkb = {
- layout = "us,ru"; # Keyboard layouts
- variant = "euro"; # Variant for the US layout
- options = "grp:win_space_toggle"; # Set Alt + Shift to toggle layouts
- };
- };
- # Enable CUPS to print documents.
- services.printing.enable = true;
- # Enable sound with pipewire.
- services.pulseaudio.enable = false;
- security.rtkit.enable = true;
- services.pipewire = {
- enable = true;
- alsa.enable = true;
- alsa.support32Bit = true;
- pulse.enable = true;
- # If you want to use JACK applications, uncomment this
- #jack.enable = true;
- # use the example session manager (no others are packaged yet so this is enabled by default,
- # no need to redefine it in your config for now)
- #media-session.enable = true;
- };
- # Enable touchpad support (enabled default in most desktopManager).
- # services.xserver.libinput.enable = true;
- # Define a user account. Don't forget to set a password with ‘passwd’.
- users.users.owner = {
- isNormalUser = true;
- description = "owner";
- extraGroups = [ "networkmanager" "wheel" ];
- packages = with pkgs; [
- kdePackages.kate
- thunderbird
- ];
- # home-manager.config = import /home/owner/.config/home-manager/home.nix;
- };
- hardware.bluetooth.enable = true;
- # hardware.bluetooth.powerOnBoot = true; # Включить при загрузке
- services.blueman.enable = true; # Менеджер Bluetooth (GUI)
- # Важно для A2DP профиля
- hardware.bluetooth.settings = {
- General = {
- Experimental = false; # Для поддержки большего числа кодеков
- };
- };
- programs.yazi.enable = true;
- # Install firefox.
- programs.firefox.enable = true;
- hardware.opentabletdriver.enable = true;
- # Allow unfree packages
- nixpkgs.config.allowUnfree = true;
- nix.settings.experimental-features = [ "nix-command" "flakes" ];
- # nixpkgs.overlays = [
- # (final: prev: {
- # vscode-unstable = (import (builtins.fetchTarball {
- # url = "https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz";
- # }) { config.allowUnfree = true; }).vscode;
- # })
- #];
- # services.vscode-server.enable = true;
- environment.plasma6.excludePackages = with pkgs.kdePackages; [
- baloo
- baloo-widgets
- kfilemetadata # ← добавь это, часто тянется автоматически
- ];
- systemd.user.services = {
- "plasma-baloo" = lib.mkForce { enable = false; };
- "plasma-baloorunner" = lib.mkForce { enable = false; };
- "kde-baloo" = lib.mkForce { enable = false; };
- "baloo_file" = lib.mkForce { enable = false; };
- };
- # List packages installed in system profile. To search, run:
- environment.systemPackages = with pkgs; [
- exfatprogs
- dosfstools
- qemu
- xournalpp
- thunderbird
- ghc
- haskellPackages.stack
- cabal-install
- haskell-language-server
- exiftool
- gnuplot
- fd
- qbittorrent
- sing-box
- mlocate
- mpv
- asciinema_3
- libreoffice-qt-fresh
- byedpi
- zapret
- steam
- mtr
- home-manager
- # Editors
- vim # A powerful text editor
- nano # A simple text editor
- # vscode-unstable # Visual Studio Code
- kitty
- keepassxc
- vivaldi
- unstable.vscode-fhs
- # vscode-fhs
- # vscodium
- # Development Tools
- clang # C and C++ compiler
- clang-tools # Additional Clang tools
- docker # Containerization platform
- # Network tools
- wget # Command-line utility for downloading files
- curl # Tool for transferring data with URLs
- git # Version control system
- # Utilities
- htop # Interactive process viewer
- tmux # Terminal multiplexer for managing multiple terminal sessions
- tree # View directory structure as a tree
- zsh
- oh-my-zsh
- texliveFull
- wineWowPackages.wayland
- jellyfin-ffmpeg
- # Communication
- telegram-desktop # Telegram desktop client
- firefox # Web browser
- thunderbird # Email client
- # Additional Development Utilities
- python3 # Python programming language
- nodejs # Node.js for JavaScript development
- gcc # GNU Compiler Collection
- gnumake # Utility for build automation
- cmake
- ihaskell
- # File Management
- zip # Tool for creating and extracting zip files
- unrar # Tool for extracting RAR files
- p7zip
- ];
- services.udisks2.enable = true;
- services.gvfs.enable = true;
- programs.zsh.enable = true;
- # Внесите в секцию system-wide конфигурации
- programs.steam = {
- enable = true;
- # Дополнительные опции при необходимости:
- remotePlay.openFirewall = true;
- dedicatedServer.openFirewall = true;
- # Включите сессии Gamescope для лучшей совместимости[citation:1]:
- gamescopeSession.enable = true;
- };
- nix.settings = {
- ssl-cert-file = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt";
- # ssl-cert-file = "/nix/store/ajmbzizy2src5485z0lkhvarapq70wwg-etc/etc/ssl/certs/ca-bundle.crt";
- };
- # Some programs need SUID wrappers, can be configured further or are
- # started in user sessions.
- # programs.mtr.enable = true;
- # programs.gnupg.agent = {
- # enable = true;
- # enableSSHSupport = true;
- # };
- # List services that you want to enable:
- # Enable the OpenSSH daemon.
- # services.openssh.enable = true;
- # Open ports in the firewall.
- # networking.firewall.allowedTCPPorts = [ ... ];
- # networking.firewall.allowedUDPPorts = [ ... ];
- # Or disable the firewall altogether.
- # networking.firewall.enable = false;
- # This value determines the NixOS release from which the default
- # settings for stateful data, like file locations and database versions
- # on your system were taken. It‘s perfectly fine and recommended to leave
- # this value at the release version of the first install of this system.
- # Before changing this value read the documentation for this option
- # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
- system.stateVersion = "25.11"; # Did you read the comment?
- }
Add Comment
Please, Sign In to add comment