modularization
This commit is contained in:
parent
3599d9c057
commit
71e22f65bb
12 changed files with 173 additions and 145 deletions
6
modules/home-manager/cli/default.nix
Normal file
6
modules/home-manager/cli/default.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{lib, ...}: {
|
||||
imports = [
|
||||
./yazi.nix
|
||||
./shell.nix
|
||||
];
|
||||
}
|
||||
26
modules/home-manager/cli/shell.nix
Normal file
26
modules/home-manager/cli/shell.nix
Normal 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;
|
||||
}
|
||||
35
modules/home-manager/cli/yazi.nix
Normal file
35
modules/home-manager/cli/yazi.nix
Normal 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";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue