terminal refactor, move packages to default, inline btop theme
This commit is contained in:
parent
864167a091
commit
d5c424e238
5 changed files with 119 additions and 124 deletions
|
|
@ -4,7 +4,9 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
btop-colors = with config.scheme.withHashtag; ''
|
btop-colors-file = pkgs.writeTextFile {
|
||||||
|
name = "btop-colors";
|
||||||
|
text = with config.scheme.withHashtag; ''
|
||||||
# Credit to https://github.com/catppuccin/btop
|
# Credit to https://github.com/catppuccin/btop
|
||||||
# Main background, empty for terminal default, need to be empty if you want transparent background
|
# Main background, empty for terminal default, need to be empty if you want transparent background
|
||||||
theme[main_bg]="${base00}"
|
theme[main_bg]="${base00}"
|
||||||
|
|
@ -90,21 +92,17 @@ let
|
||||||
theme[process_mid]="${base07}"
|
theme[process_mid]="${base07}"
|
||||||
theme[process_end]="${base0E}"
|
theme[process_end]="${base0E}"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
btop-colors-file = pkgs.writeTextFile {
|
|
||||||
name = "btop-colors";
|
|
||||||
text = btop-colors;
|
|
||||||
destination = "/nixos.theme";
|
destination = "/nixos.theme";
|
||||||
};
|
};
|
||||||
|
|
||||||
mergedConfig = pkgs.runCommand "mergedConfig" { } ''
|
batConfigDir = pkgs.runCommand "mergedConfig" { } ''
|
||||||
mkdir -p $out/themes
|
mkdir -p $out/themes
|
||||||
cp -r ${btop-colors-file}/nixos.theme $out/themes/nixos.theme
|
cp -r ${btop-colors-file}/nixos.theme $out/themes/nixos.theme
|
||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
home.file.".config/btop" = {
|
home.file.".config/btop" = {
|
||||||
source = mergedConfig;
|
source = batConfigDir;
|
||||||
recursive = true;
|
recursive = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,9 @@
|
||||||
browsh
|
browsh
|
||||||
mosh
|
mosh
|
||||||
gh
|
gh
|
||||||
|
kdePackages.qttools
|
||||||
|
eza
|
||||||
|
pigz
|
||||||
|
|
||||||
# development & tooling
|
# development & tooling
|
||||||
jdk21_headless
|
jdk21_headless
|
||||||
|
|
@ -42,9 +45,19 @@
|
||||||
flaresolverr
|
flaresolverr
|
||||||
nerd-fonts.fira-mono
|
nerd-fonts.fira-mono
|
||||||
ffmpeg-full
|
ffmpeg-full
|
||||||
|
|
||||||
|
# formatters
|
||||||
|
kdePackages.qtdeclarative
|
||||||
|
prettier
|
||||||
|
prettierd
|
||||||
|
nixfmt
|
||||||
|
stylua
|
||||||
|
black
|
||||||
|
clang-tools
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.git = {
|
programs = {
|
||||||
|
git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
user = {
|
user = {
|
||||||
|
|
@ -55,4 +68,14 @@
|
||||||
commit.gpgsign = true;
|
commit.gpgsign = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
bat = {
|
||||||
|
enable = true;
|
||||||
|
config.style = "numbers,changes";
|
||||||
|
};
|
||||||
|
lazygit = {
|
||||||
|
enable = true;
|
||||||
|
enableFishIntegration = true;
|
||||||
|
};
|
||||||
|
lazysql.enable = true;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,9 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
|
||||||
kdePackages.qttools
|
|
||||||
eza
|
|
||||||
pigz
|
|
||||||
];
|
|
||||||
|
|
||||||
programs.fish = {
|
programs.fish = {
|
||||||
enable = true;
|
enable = true;
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
|
|
|
||||||
|
|
@ -128,14 +128,5 @@ in
|
||||||
macos_titlebar_color = "system";
|
macos_titlebar_color = "system";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
bat = {
|
|
||||||
enable = true;
|
|
||||||
# config.theme = "Catppuccin ${config.catppuccinUpper.flavor}";
|
|
||||||
};
|
|
||||||
lazygit = {
|
|
||||||
enable = true;
|
|
||||||
enableFishIntegration = true;
|
|
||||||
};
|
|
||||||
lazysql.enable = true;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -7,16 +7,6 @@
|
||||||
{
|
{
|
||||||
home.sessionVariables.EDITOR = lib.mkForce "kitty nvim";
|
home.sessionVariables.EDITOR = lib.mkForce "kitty nvim";
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
kdePackages.qtdeclarative
|
|
||||||
prettier
|
|
||||||
prettierd
|
|
||||||
nixfmt
|
|
||||||
stylua
|
|
||||||
black
|
|
||||||
clang-tools
|
|
||||||
];
|
|
||||||
|
|
||||||
programs.nixvim = {
|
programs.nixvim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enablePrintInit = true;
|
enablePrintInit = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue