♻️ [shared] Moved Hm configs to shared base

This commit is contained in:
2025-05-22 20:10:48 +02:00
parent 2b020958ed
commit 53329b8d1c
17 changed files with 60 additions and 68 deletions

View File

@ -0,0 +1,10 @@
{ theme, ... }:
{
catppuccin.btop = {
enable = true;
flavor = theme.flavor;
};
programs.btop.enable = true;
}

View File

@ -0,0 +1,10 @@
{
imports = [
./btop.nix
./eza.nix
./fastfetch.nix
./fish.nix
./fzf.nix
./zoxide.nix
];
}

View File

@ -0,0 +1,12 @@
{
programs = {
eza = {
enable = true;
colors = "always";
enableFishIntegration = true;
git = true;
icons = "always";
};
fish.shellAliases.ls = "eza";
};
}

View 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"
];
};
};
};
}

View 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" = " ";
};
};
};
};
}

View File

@ -0,0 +1,13 @@
{ theme, ... }:
{
catppuccin.fzf = {
enable = true;
flavor = theme.flavor;
};
programs.fzf = {
enable = true;
enableFishIntegration = true;
};
}

View File

@ -0,0 +1,10 @@
# cd alternative
{
programs = {
fish.shellAliases.cd = "z";
zoxide = {
enable = true;
enableFishIntegration = true;
};
};
}