nixos/home/maidena.nix

128 lines
2.3 KiB
Nix
Raw Normal View History

2024-08-04 23:45:01 +05:30
{
inputs,
config,
pkgs,
lib,
...
}:
let genFlatList = f: n: builtins.concatLists (builtins.genList f n);
in
{
programs = {
home-manager.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:" ];
};
};
neovim = {
enable = true;
viAlias = true;
vimAlias = true;
defaultEditor = true;
extraLuaConfig = ''
vim.cmd "colorscheme desert"
'';
};
fastfetch = {
enable = true;
settings = {};
};
kitty = {
enable = true;
};
};
wayland.windowManager.hyprland = {
enable = true;
settings = {
general = {
gaps_in = 5;
gaps_out = 20;
border_size = 2;
"col.active_border" = "rgba(33ccffee) rgba(00ff99ee) 45deg";
"col.inactive_border" = "rgba(595959aa)";
resize_on_border = true;
};
input.kb_layout = "no";
input.touchpad.natural_scroll = true;
decoration = {
rounding = 0;
active_opacity = 1.0;
inactive_opacity = 1.0;
drop_shadow = true;
shadow_range = 4;
shadow_render_power = 3;
"col.shadow" = "rgba(1a1a1aee)";
blur = {
enabled = true;
size = 3;
passes = 1;
vibrancy = 0.1696;
};
};
bind = [
"SUPER, Return, exec, kitty"
"SUPER SHIFT, Q, exit"
"SUPER, V, togglefloating"
"SUPER, J, togglesplit"
"SUPER, P, pseudo"
"ALT CTRL, left, workspace, -1"
"ALT CTRL, right, workspace, +1"
] ++ (
genFlatList
( x: let n = toString (x + 1);
in
[ "SUPER, ${n}, workspace, ${n}"
"SUPER SHIFT, ${n}, movetoworkspace, ${n}"
]
)
9
);
};
};
home.packages = with pkgs; [
ani-cli
ytfzf
];
home.sessionVariables = {
ANI_CLI_PLAYER = "mpv";
};
home = {
username = "andrey";
homeDirectory = "/home/andrey";
stateVersion = "24.05";
};
}
# vim: ts=2 sw=2 et