✨ [shared] Moved cmdline tools to /shell in home-manager config. Added Yazi catppuccin theme instead of manual
This commit is contained in:
10
shared/home-manager/shell/btop.nix
Normal file
10
shared/home-manager/shell/btop.nix
Normal file
@ -0,0 +1,10 @@
|
||||
{ theme, ... }:
|
||||
|
||||
{
|
||||
catppuccin.btop = {
|
||||
enable = true;
|
||||
flavor = theme.flavor;
|
||||
};
|
||||
|
||||
programs.btop.enable = true;
|
||||
}
|
BIN
shared/home-manager/shell/cava/cava.png
Normal file
BIN
shared/home-manager/shell/cava/cava.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.1 KiB |
26
shared/home-manager/shell/cava/default.nix
Normal file
26
shared/home-manager/shell/cava/default.nix
Normal file
@ -0,0 +1,26 @@
|
||||
## Audio visualizer
|
||||
{ pkgs, theme, ... }:
|
||||
|
||||
{
|
||||
catppuccin.cava = {
|
||||
enable = true;
|
||||
flavor = theme.flavor;
|
||||
};
|
||||
|
||||
programs.cava = {
|
||||
enable = true;
|
||||
package = pkgs.cava;
|
||||
};
|
||||
|
||||
xdg.desktopEntries.cava = {
|
||||
name = "Cava";
|
||||
genericName = "Audio visualizer";
|
||||
terminal = true;
|
||||
exec = "${pkgs.cava}/bin/cava";
|
||||
icon = ./cava.png; # TODO icon not displaying in runner
|
||||
categories = [
|
||||
"Audio"
|
||||
"AudioVideo"
|
||||
];
|
||||
};
|
||||
}
|
10
shared/home-manager/shell/default.nix
Normal file
10
shared/home-manager/shell/default.nix
Normal file
@ -0,0 +1,10 @@
|
||||
{
|
||||
imports = [
|
||||
./btop.nix
|
||||
./cava
|
||||
./fastfetch.nix
|
||||
./fish.nix
|
||||
./yazi
|
||||
./zoxide.nix
|
||||
];
|
||||
}
|
63
shared/home-manager/shell/fastfetch.nix
Normal file
63
shared/home-manager/shell/fastfetch.nix
Normal file
@ -0,0 +1,63 @@
|
||||
{ lib, ... }:
|
||||
|
||||
{
|
||||
programs = {
|
||||
fish.shellAliases.fetch = "fastfetch";
|
||||
|
||||
fastfetch = {
|
||||
enable = true;
|
||||
settings = {
|
||||
logo = {
|
||||
source = "${lib.custom.relativeToRoot "shared/assets/Catppuccin.png"}";
|
||||
type = "kitty";
|
||||
height = 18;
|
||||
padding.top = 2;
|
||||
};
|
||||
display.separator = " ";
|
||||
modules =
|
||||
let
|
||||
keyColor = "34";
|
||||
module = type: key: {
|
||||
inherit type key keyColor;
|
||||
};
|
||||
formatModule = type: key: format: {
|
||||
inherit
|
||||
type
|
||||
key
|
||||
format
|
||||
keyColor
|
||||
;
|
||||
};
|
||||
in
|
||||
[
|
||||
"break"
|
||||
"break"
|
||||
{
|
||||
type = "title";
|
||||
keyWidth = 10;
|
||||
}
|
||||
"break"
|
||||
(module "os" " ")
|
||||
(module "kernel" " ")
|
||||
(formatModule "packages" " " "{} (nixpkgs)")
|
||||
(module "shell" " ")
|
||||
(module "terminal" " ")
|
||||
(module "wm" " ")
|
||||
(module "theme" " ")
|
||||
(module "cursor" " ")
|
||||
(module "terminalfont" " ")
|
||||
(module "uptime" " ")
|
||||
(formatModule "datetime" " " "{1}-{3}-{11}")
|
||||
(module "cpu" " ")
|
||||
(module "gpu" " ")
|
||||
(module "sound" " ")
|
||||
(module "lm" " ")
|
||||
"break"
|
||||
"colors"
|
||||
"break"
|
||||
"break"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
55
shared/home-manager/shell/fish.nix
Normal file
55
shared/home-manager/shell/fish.nix
Normal file
@ -0,0 +1,55 @@
|
||||
{ pkgs, theme, ... }:
|
||||
|
||||
{
|
||||
catppuccin = {
|
||||
fish = {
|
||||
enable = true;
|
||||
flavor = theme.flavor;
|
||||
};
|
||||
starship = {
|
||||
enable = true;
|
||||
flavor = theme.flavor;
|
||||
};
|
||||
};
|
||||
|
||||
programs = {
|
||||
fish = {
|
||||
enable = true;
|
||||
# Start starship when creating a new shell
|
||||
interactiveShellInit = ''
|
||||
starship init fish | source
|
||||
${pkgs.fortune}/bin/fortune | ${pkgs.cowsay}/bin/cowsay -f tux
|
||||
'';
|
||||
plugins = [
|
||||
{
|
||||
# !! to get the previous command
|
||||
# https://github.com/BrewingWeasel/fishbang
|
||||
name = "fishbang";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "BrewingWeasel";
|
||||
repo = "fishbang";
|
||||
rev = "50389667eb9ac79edcff9b987c83e1de8ac93921";
|
||||
hash = "sha256-IneNWyfo29C7FDA5b6pTZRX3HpP6y/dRM6GXuLq2+zc=";
|
||||
};
|
||||
}
|
||||
];
|
||||
shellAliases = {
|
||||
nix-shell = "nix-shell --run fish"; # Start nix-shells using fish
|
||||
};
|
||||
};
|
||||
|
||||
starship = {
|
||||
enable = true;
|
||||
settings = {
|
||||
directory.substitutions = {
|
||||
"Documents" = " ";
|
||||
"Downloads" = " ";
|
||||
"Music" = " ";
|
||||
"Pictures" = " ";
|
||||
"Git" = " ";
|
||||
"nextcloud" = " ";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
54
shared/home-manager/shell/yazi/default.nix
Normal file
54
shared/home-manager/shell/yazi/default.nix
Normal file
@ -0,0 +1,54 @@
|
||||
{
|
||||
theme,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
catppuccin.yazi = {
|
||||
enable = true;
|
||||
flavor = theme.flavor;
|
||||
accent = "blue";
|
||||
};
|
||||
|
||||
programs.yazi = {
|
||||
enable = true;
|
||||
settings = {
|
||||
manager = {
|
||||
ratio = [
|
||||
2
|
||||
4
|
||||
2
|
||||
];
|
||||
sort_by = "natural";
|
||||
sort_sensitive = true;
|
||||
sort_reverse = false;
|
||||
sort_dir_first = true;
|
||||
linemode = "none";
|
||||
show_hidden = true;
|
||||
show_symlink = true;
|
||||
};
|
||||
|
||||
preview = {
|
||||
image_filter = "lanczos3";
|
||||
image_quality = 90;
|
||||
tab_size = 1;
|
||||
max_width = 600;
|
||||
max_height = 900;
|
||||
cache_dir = "";
|
||||
ueberzug_scale = 1;
|
||||
ueberzug_offset = [
|
||||
0
|
||||
0
|
||||
0
|
||||
0
|
||||
];
|
||||
};
|
||||
|
||||
tasks = {
|
||||
micro_workers = 5;
|
||||
macro_workers = 10;
|
||||
bizarre_retry = 5;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
6
shared/home-manager/shell/zoxide.nix
Normal file
6
shared/home-manager/shell/zoxide.nix
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
programs.zoxide = {
|
||||
enable = true;
|
||||
enableFishIntegration = true;
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user