Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- { config, pkgs, ... }:
- let
- unstable = import (builtins.fetchTarball {
- url = "https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz";
- }) { config = config.nixpkgs.config; };
- in
- {
- # Home Manager needs a bit of information about you and the paths it should
- # manage.
- home.username = "owner";
- home.homeDirectory = "/home/owner";
- # This value determines the Home Manager release that your configuration is
- # compatible with. This helps avoid breakage when a new Home Manager release
- # introduces backwards incompatible changes.
- #
- # You should not change this value, even if you update Home Manager. If you do
- # want to update the value, then make sure to first check the Home Manager
- # release notes.
- home.stateVersion = "26.05"; # Изменено на версию NixOS
- nixpkgs.config.allowUnfree = true;
- # The home.packages option allows you to install Nix packages into your
- # environment.
- home.packages = with pkgs; [
- # Добавьте сюда свои пакеты
- # libreoffice-qt-fresh
- # gui-for-singbox
- # (pkgs.nerdfonts.override { fonts = [ "FantasqueSansMono" ]; })
- ];
- # Home Manager can also manage your environment variables through
- # 'home.sessionVariables'.
- home.sessionVariables = {
- SHELL = "${pkgs.zsh}/bin/zsh";
- # Добавьте другие переменные при необходимости
- };
- # Управление dotfiles
- home.file = {
- # ".screenrc".source = dotfiles/screenrc;
- # ".gradle/gradle.properties".text = ''
- # org.gradle.console=verbose
- # org.gradle.daemon.idletimeout=3600000
- # '';
- };
- # Backup extension для файлов
- home.backupFileExtension = ".backup";
- # Настройка direnv
- programs.direnv = {
- enable = true;
- nix-direnv.enable = true;
- };
- # Настройка Kitty
- programs.kitty = {
- enable = true;
- shellIntegration.mode = "disabled";
- settings = {
- enabled_layouts = "tall:mirrored=true";
- split_axis = "horizontal";
- font_family = "FiraCode Nerd Font Mono";
- font_size = 12;
- background_opacity = "0.8";
- confirm_os_window_close = 0;
- tab_bar_style = "powerline";
- mouse_hide_wait = -1;
- notify_on_cmd_finish = "invisible 20";
- shell = "${pkgs.zsh}/bin/zsh";
- };
- };
- # Настройка Zsh
- programs.zsh = {
- enable = true;
- enableCompletion = true;
- autosuggestion.enable = true;
- syntaxHighlighting.enable = true;
- history.size = 12000;
- # ЗАГРУЗКА ТЕМЫ ДО ВСЕХ ОСТАЛЬНЫХ НАСТРОЕК
- initExtraFirst = ''
- # Загружаем тему Powerlevel10k до всех остальных конфигураций
- source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-theme
- '';
- # ОСНОВНАЯ КОНФИГУРАЦИЯ ZSH
- initExtra = ''
- # Загружаем пользовательскую конфигурацию p10k (если есть)
- [[ -f ~/.p10k.zsh ]] && source ~/.p10k.zsh
- # Direnv hook
- eval "$(direnv hook zsh)"
- # Дополнительные пользовательские настройки
- # alias ll='ls -la'
- # export EDITOR='micro'
- '';
- # Oh-My-Zsh (необязательно, если используете только Powerlevel10k)
- oh-my-zsh = {
- enable = true;
- plugins = [ "git" "sudo" "dirhistory" ];
- # theme = "robbyrussell"; # Закомментировано, т.к. используется p10k
- };
- };
- # Home Manager manages itself
- programs.home-manager.enable = true;
- }
Advertisement
Add Comment
Please, Sign In to add comment