feat(modules): add support for bottom
This commit is contained in:
parent
0328858104
commit
99216b897b
2 changed files with 23 additions and 0 deletions
22
modules/home-manager/bottom.nix
Normal file
22
modules/home-manager/bottom.nix
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
{ config, pkgs, lib, ... }:
|
||||||
|
let cfg = config.programs.bottom.catppuccin;
|
||||||
|
in {
|
||||||
|
options.programs.bottom.catppuccin = with lib; {
|
||||||
|
enable = mkEnableOption "Catppuccin theme";
|
||||||
|
flavour = mkOption {
|
||||||
|
type = types.enum [ "latte" "frappe" "macchiato" "mocha" ];
|
||||||
|
default = config.catppuccin.flavour;
|
||||||
|
description = "Catppuccin flavour for bottom";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config.programs.bottom.settings = with builtins;
|
||||||
|
with lib;
|
||||||
|
with pkgs;
|
||||||
|
mkIf cfg.enable (fromTOML (readFile (fetchFromGitHub {
|
||||||
|
owner = "catppuccin";
|
||||||
|
repo = "bottom";
|
||||||
|
rev = "c0efe9025f62f618a407999d89b04a231ba99c92";
|
||||||
|
sha256 = "sha256-VaHX2I/Gn82wJWzybpWNqU3dPi3206xItOlt0iF6VVQ=";
|
||||||
|
} + "/themes/${cfg.flavour}.toml")));
|
||||||
|
}
|
|
@ -1,6 +1,7 @@
|
||||||
{ config, pkgs, lib, ... }: {
|
{ config, pkgs, lib, ... }: {
|
||||||
imports = [
|
imports = [
|
||||||
./bat.nix
|
./bat.nix
|
||||||
|
./bottom.nix
|
||||||
./starship.nix
|
./starship.nix
|
||||||
./helix.nix
|
./helix.nix
|
||||||
./gtk.nix
|
./gtk.nix
|
||||||
|
|
Loading…
Reference in a new issue