feat(home-manager): add support for foot (#120)

This commit is contained in:
Jens Gatzweiler 2024-04-17 05:14:17 +02:00 committed by GitHub
parent e69bd64bac
commit 5e09f8a293
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 52 additions and 0 deletions

View file

@ -159,6 +159,26 @@
}, },
"version": "0ce27b518e8ead555dec34dd8be3df5bd75cff8e" "version": "0ce27b518e8ead555dec34dd8be3df5bd75cff8e"
}, },
"foot": {
"cargoLocks": null,
"date": "2024-01-18",
"extract": null,
"name": "foot",
"passthru": null,
"pinned": false,
"src": {
"deepClone": false,
"fetchSubmodules": false,
"leaveDotGit": false,
"name": null,
"owner": "catppuccin",
"repo": "foot",
"rev": "ee5549af72ab78520ac2aa1c671bf5c2d347c8ca",
"sha256": "sha256-3hK9klXwdHhprG2wUMt7nBfbL1mb/gl+k/MtJUuY000=",
"type": "github"
},
"version": "ee5549af72ab78520ac2aa1c671bf5c2d347c8ca"
},
"gitui": { "gitui": {
"cargoLocks": null, "cargoLocks": null,
"date": "2023-11-13", "date": "2023-11-13",

View file

@ -97,6 +97,18 @@
}; };
date = "2023-11-02"; date = "2023-11-02";
}; };
foot = {
pname = "foot";
version = "ee5549af72ab78520ac2aa1c671bf5c2d347c8ca";
src = fetchFromGitHub {
owner = "catppuccin";
repo = "foot";
rev = "ee5549af72ab78520ac2aa1c671bf5c2d347c8ca";
fetchSubmodules = false;
sha256 = "sha256-3hK9klXwdHhprG2wUMt7nBfbL1mb/gl+k/MtJUuY000=";
};
date = "2024-01-18";
};
gitui = { gitui = {
pname = "gitui"; pname = "gitui";
version = "39978362b2c88b636cacd55b65d2f05c45a47eb9"; version = "39978362b2c88b636cacd55b65d2f05c45a47eb9";

View file

@ -0,0 +1,15 @@
{ config
, lib
, sources
, ...
}:
let
cfg = config.programs.foot.catppuccin;
enable = cfg.enable && config.programs.foot.enable;
theme = lib.ctp.fromINI (sources.foot + /catppuccin-${cfg.flavour}.ini);
in
{
options.programs.foot.catppuccin = lib.ctp.mkCatppuccinOpt "foot";
config.programs.foot = lib.mkIf enable { settings = theme; };
}

View file

@ -30,6 +30,10 @@ fetch.github = "catppuccin/dunst"
src.git = "https://github.com/catppuccin/fish.git" src.git = "https://github.com/catppuccin/fish.git"
fetch.github = "catppuccin/fish" fetch.github = "catppuccin/fish"
[foot]
src.git = "https://github.com/catppuccin/foot.git"
fetch.github = "catppuccin/foot"
[gitui] [gitui]
src.git = "https://github.com/catppuccin/gitui.git" src.git = "https://github.com/catppuccin/gitui.git"
fetch.github = "catppuccin/gitui" fetch.github = "catppuccin/gitui"

View file

@ -60,6 +60,7 @@ in
btop = ctpEnable; btop = ctpEnable;
cava = ctpEnable; cava = ctpEnable;
fish = ctpEnable; fish = ctpEnable;
foot = ctpEnable;
fzf = ctpEnable; fzf = ctpEnable;
git.enable = true; # Required for delta git.enable = true; # Required for delta
git.delta = ctpEnable; git.delta = ctpEnable;