Ilya_konstantinov

Untitled

Aug 20th, 2026
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.69 KB | None | 0 0
  1. { config, pkgs, ... }:
  2. let
  3. unstable = import (builtins.fetchTarball {
  4. url = "https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz";
  5. }) { config = config.nixpkgs.config; };
  6. in
  7. {
  8. # Home Manager needs a bit of information about you and the paths it should
  9. # manage.
  10. home.username = "owner";
  11. home.homeDirectory = "/home/owner";
  12.  
  13. # This value determines the Home Manager release that your configuration is
  14. # compatible with. This helps avoid breakage when a new Home Manager release
  15. # introduces backwards incompatible changes.
  16. #
  17. # You should not change this value, even if you update Home Manager. If you do
  18. # want to update the value, then make sure to first check the Home Manager
  19. # release notes.
  20. home.stateVersion = "26.05"; # Изменено на версию NixOS
  21.  
  22. nixpkgs.config.allowUnfree = true;
  23.  
  24. # The home.packages option allows you to install Nix packages into your
  25. # environment.
  26. home.packages = with pkgs; [
  27. # Добавьте сюда свои пакеты
  28. # libreoffice-qt-fresh
  29. # gui-for-singbox
  30. # (pkgs.nerdfonts.override { fonts = [ "FantasqueSansMono" ]; })
  31. ];
  32.  
  33. # Home Manager can also manage your environment variables through
  34. # 'home.sessionVariables'.
  35. home.sessionVariables = {
  36. SHELL = "${pkgs.zsh}/bin/zsh";
  37. # Добавьте другие переменные при необходимости
  38. };
  39.  
  40. # Управление dotfiles
  41. home.file = {
  42. # ".screenrc".source = dotfiles/screenrc;
  43. # ".gradle/gradle.properties".text = ''
  44. # org.gradle.console=verbose
  45. # org.gradle.daemon.idletimeout=3600000
  46. # '';
  47. };
  48.  
  49. # Backup extension для файлов
  50. home.backupFileExtension = ".backup";
  51.  
  52. # Настройка direnv
  53. programs.direnv = {
  54. enable = true;
  55. nix-direnv.enable = true;
  56. };
  57.  
  58. # Настройка Kitty
  59. programs.kitty = {
  60. enable = true;
  61. shellIntegration.mode = "disabled";
  62. settings = {
  63. enabled_layouts = "tall:mirrored=true";
  64. split_axis = "horizontal";
  65. font_family = "FiraCode Nerd Font Mono";
  66. font_size = 12;
  67. background_opacity = "0.8";
  68. confirm_os_window_close = 0;
  69. tab_bar_style = "powerline";
  70. mouse_hide_wait = -1;
  71. notify_on_cmd_finish = "invisible 20";
  72. shell = "${pkgs.zsh}/bin/zsh";
  73. };
  74. };
  75.  
  76. # Настройка Zsh
  77. programs.zsh = {
  78. enable = true;
  79. enableCompletion = true;
  80. autosuggestion.enable = true;
  81. syntaxHighlighting.enable = true;
  82. history.size = 12000;
  83.  
  84. # ЗАГРУЗКА ТЕМЫ ДО ВСЕХ ОСТАЛЬНЫХ НАСТРОЕК
  85. initExtraFirst = ''
  86. # Загружаем тему Powerlevel10k до всех остальных конфигураций
  87. source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-theme
  88. '';
  89.  
  90. # ОСНОВНАЯ КОНФИГУРАЦИЯ ZSH
  91. initExtra = ''
  92. # Загружаем пользовательскую конфигурацию p10k (если есть)
  93. [[ -f ~/.p10k.zsh ]] && source ~/.p10k.zsh
  94.  
  95. # Direnv hook
  96. eval "$(direnv hook zsh)"
  97.  
  98. # Дополнительные пользовательские настройки
  99. # alias ll='ls -la'
  100. # export EDITOR='micro'
  101. '';
  102.  
  103. # Oh-My-Zsh (необязательно, если используете только Powerlevel10k)
  104. oh-my-zsh = {
  105. enable = true;
  106. plugins = [ "git" "sudo" "dirhistory" ];
  107. # theme = "robbyrussell"; # Закомментировано, т.к. используется p10k
  108. };
  109. };
  110.  
  111. # Home Manager manages itself
  112. programs.home-manager.enable = true;
  113. }
Advertisement
Add Comment
Please, Sign In to add comment