add configs

This commit is contained in:
thek4n 2026-08-11 00:01:22 +03:00
parent 652baaab98
commit 6375b8e31f
3 changed files with 16 additions and 30 deletions

View File

@ -1,12 +0,0 @@
set preview_images true
set preview_images_method ueberzug
# Show VCS info
set vcs_aware true
default_linemode devicons
set viewmode miller
map <F3> exit
map ,x exit

View File

@ -40,7 +40,6 @@
useGlobalPkgs = true; useGlobalPkgs = true;
useUserPackages = true; useUserPackages = true;
# Конфигурация для пользователя
users.${username} = import ./home/users/${username}.nix; users.${username} = import ./home/users/${username}.nix;
# Дополнительные аргументы для home-manager # Дополнительные аргументы для home-manager
@ -50,28 +49,20 @@
}; };
}; };
} }
# Собственные модули
./modules/common
./modules/desktop
] ++ extraModules; ] ++ extraModules;
}; };
in { in {
# Конфигурации для разных хостов
nixosConfigurations = { nixosConfigurations = {
# Основной рабочий ПК
desktop = mkHost { desktop = mkHost {
hostname = "thek4n.ru"; hostname = "thek4n.ru";
username = "thek4n"; username = "thek4n";
extraModules = [ extraModules = [
./hosts/thek4n.ru/hardware.nix ./hosts/thek4n/hardware.nix
]; ];
}; };
}; };
# Для удобства разработки
devShells.${system}.default = nixpkgs.legacyPackages.${system}.mkShell { devShells.${system}.default = nixpkgs.legacyPackages.${system}.mkShell {
buildInputs = with nixpkgs.legacyPackages.${system}; [ buildInputs = with nixpkgs.legacyPackages.${system}; [
nixpkgs-fmt nixpkgs-fmt

View File

@ -41,15 +41,22 @@
defaultEditor = true; defaultEditor = true;
}; };
programs.git = { home.file = {
enable = true; ".config/sway".source = ../../configs/.config/sway;
userName = "thek4n"; ".config/swaylock".source = ../../configs/.config/swaylock;
userEmail = "thek4n@yandex.ru"; ".config/waybar".source = ../../configs/.config/waybar;
".config/mako".source = ../../configs/.config/mako;
".config/kanshi".source = ../../configs/.config/kanshi;
".config/rofi".source = ../../configs/.config/rofi;
".config/yazi".source = ../../configs/.config/yazi;
".config/tmux".source = ../../configs/.config/tmux;
".config/alacritty".source = ../../configs/.config/alacritty;
".config/nvim".source = ../../configs/.config/nvim;
".config/zsh".source = ../../configs/.config/zsh;
".config/git".source = ../../configs/.config/git;
".zshenv".source = ../../configs/.zshenv;
".editorconfig".source = ../../configs/.editorconfig;
}; };
# home.file.".config/nvim/init.lua".source = ./nvim/init.lua;
# home.file.".zshrc".source = ./zsh/.zshrc;
# home.file.".gitconfig".source = ./git/.gitconfig;
}; };
}; };
}; };