modularization

This commit is contained in:
tulg 2026-01-10 18:00:49 +03:00
parent 3599d9c057
commit 71e22f65bb
12 changed files with 173 additions and 145 deletions

View file

@ -0,0 +1,6 @@
{lib, ...}: {
imports = [
./yazi.nix
./shell.nix
];
}

View file

@ -0,0 +1,26 @@
{pkgs, ...}: {
programs.bash = {
enable = true;
shellAliases = {
a = "echo idssss";
rb = "sudo nixos-rebuild switch --flake ~/nixdots#";
nixtest = "sudo nixos-rebuild test --flake ~/nixdots#";
infect = "nix run github:nix-community/nixos-anywhere -- -- flake";
};
bashrcExtra = ''
PS1="\[\e[38;5;177m\]\u\[\e[38;5;220m\]@\[\e[38;5;1m\]\h \[\e[38;5;33m\]\w \[\033[0m\]\$ "
'';
};
programs.git = {
enable = true;
settings = {
user.name = "tulg";
user.email = "tulg@protonmail.ch";
};
};
programs.zsh.enable = true;
}

View file

@ -0,0 +1,35 @@
{
config,
pkgs,
...
}: {
programs.yazi = {
enable = true;
settings = {
mgr = {
ratio = [1 1 6];
};
preview = {
max_width = 1000;
max_height = 900;
};
tasks = {
image_bound = [0 0];
};
keymap = {
mgr.prepend_keymap = [
{
on = "x";
for = "linux";
run = "shell -- hyprctl hyprpaper wallpaper ,%h";
desc = "Set hovered file as wallpaper";
}
];
};
};
};
}