Skip to content

Commit

Permalink
feat(home-manager): add support for foot (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lichthagel authored Apr 17, 2024
1 parent e69bd64 commit 5e09f8a
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 0 deletions.
20 changes: 20 additions & 0 deletions _sources/generated.json
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,26 @@
},
"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": {
"cargoLocks": null,
"date": "2023-11-13",
Expand Down
12 changes: 12 additions & 0 deletions _sources/generated.nix
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,18 @@
};
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 = {
pname = "gitui";
version = "39978362b2c88b636cacd55b65d2f05c45a47eb9";
Expand Down
15 changes: 15 additions & 0 deletions modules/home-manager/foot.nix
Original file line number Diff line number Diff line change
@@ -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; };
}
4 changes: 4 additions & 0 deletions nvfetcher.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ fetch.github = "catppuccin/dunst"
src.git = "https://github.com/catppuccin/fish.git"
fetch.github = "catppuccin/fish"

[foot]
src.git = "https://github.com/catppuccin/foot.git"
fetch.github = "catppuccin/foot"

[gitui]
src.git = "https://github.com/catppuccin/gitui.git"
fetch.github = "catppuccin/gitui"
Expand Down
1 change: 1 addition & 0 deletions test.nix
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ in
btop = ctpEnable;
cava = ctpEnable;
fish = ctpEnable;
foot = ctpEnable;
fzf = ctpEnable;
git.enable = true; # Required for delta
git.delta = ctpEnable;
Expand Down

0 comments on commit 5e09f8a

Please sign in to comment.