From 38d98e3c7eedec3c37225b92dedc93a2cffc338e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laure=CE=B7t?= Date: Mon, 16 Oct 2023 20:17:59 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9E=95=20(neodymium/home/shell)=20replace=20?= =?UTF-8?q?htop=20by=20btop?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hosts/neodymium/home/shell/btop.nix | 26 ++++++++++++++++++++++++++ hosts/neodymium/home/shell/default.nix | 11 +++++++++-- 2 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 hosts/neodymium/home/shell/btop.nix diff --git a/hosts/neodymium/home/shell/btop.nix b/hosts/neodymium/home/shell/btop.nix new file mode 100644 index 0000000..15bfea1 --- /dev/null +++ b/hosts/neodymium/home/shell/btop.nix @@ -0,0 +1,26 @@ +{ pkgs, ... }: +let + catppuccin-btop = pkgs.fetchFromGitHub { + owner = "catppuccin"; + repo = "btop"; + rev = "c6469190f2ecf25f017d6120bf4e050e6b1d17af"; + sha256 = "sha256-jodJl4f2T9ViNqsY9fk8IV62CrpC5hy7WK3aRpu70Cs="; + }; +in { + + xdg.configFile."btop/themes".source = "${catppuccin-btop}/themes"; + + programs.btop = { + enable = true; + + settings = { + theme_background = false; + color_theme = "catppuccin_mocha"; + + clock_format = "%Y-%m-%d %X"; + }; + }; + + programs.zsh.shellAliases = { htop = "btop"; }; + +} diff --git a/hosts/neodymium/home/shell/default.nix b/hosts/neodymium/home/shell/default.nix index 2b4558e..da8f92a 100644 --- a/hosts/neodymium/home/shell/default.nix +++ b/hosts/neodymium/home/shell/default.nix @@ -1,4 +1,11 @@ { ... }: { - imports = - [ ./atuin.nix ./bat.nix ./direnv.nix ./exa.nix ./git.nix ./zsh.nix ]; + imports = [ + ./atuin.nix + ./bat.nix + ./btop.nix + ./direnv.nix + ./exa.nix + ./git.nix + ./zsh.nix + ]; }