nixos/home/common.nix

85 lines
1.5 KiB
Nix
Raw Normal View History

{ pkgs, ... }:
{
imports = [
./components/nethack.nix
./components/firefox.nix
];
programs = {
home-manager.enable = true;
fastfetch.enable = true;
htop.enable = true;
bash = {
enable = true;
historyControl = [ "ignoreboth" ];
};
git = {
enable = true;
userName = "xezo360hye";
userEmail = "xezo360hye@gmail.com";
extraConfig = {
init.defaultBranch = "master";
url."https://github.com/".insteadOf = [ "gh:" "github:" ];
url."https://git.psf.lt/".insteadOf = [ "psf:" "gitea:" ];
};
};
nixvim = {
enable = true;
viAlias = true;
vimAlias = true;
defaultEditor = true;
colorschemes.tokyonight.enable = true;
plugins = {
guess-indent.enable = true;
copilot-lua = {
enable = true;
suggestion = {
autoTrigger = true;
keymap = {
accept = "<Tab>";
acceptLine = "<M-l>";
acceptWord = "<M-Right>";
};
};
};
};
};
};
news.display = "show";
nixpkgs.config.allowUnfree = true;
home = {
packages = with pkgs; [
telegram-desktop
libqalculate
arduino-cli
nethack
ani-cli
ytfzf
cpufrequtils
steam-run
];
sessionVariables = {
ANI_CLI_PLAYER = "mpv";
};
username = "andrey";
homeDirectory = "/home/andrey";
stateVersion = "24.05";
};
}