From 5e09f8a293808c456045b8a33413a05ee6289b94 Mon Sep 17 00:00:00 2001 From: Jens Gatzweiler Date: Wed, 17 Apr 2024 05:14:17 +0200 Subject: [PATCH] feat(home-manager): add support for foot (#120) --- _sources/generated.json | 20 ++++++++++++++++++++ _sources/generated.nix | 12 ++++++++++++ modules/home-manager/foot.nix | 15 +++++++++++++++ nvfetcher.toml | 4 ++++ test.nix | 1 + 5 files changed, 52 insertions(+) create mode 100644 modules/home-manager/foot.nix diff --git a/_sources/generated.json b/_sources/generated.json index 756d9e0..5d8d3a7 100644 --- a/_sources/generated.json +++ b/_sources/generated.json @@ -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", diff --git a/_sources/generated.nix b/_sources/generated.nix index a830e43..bc60daa 100644 --- a/_sources/generated.nix +++ b/_sources/generated.nix @@ -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"; diff --git a/modules/home-manager/foot.nix b/modules/home-manager/foot.nix new file mode 100644 index 0000000..9b63178 --- /dev/null +++ b/modules/home-manager/foot.nix @@ -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; }; +} diff --git a/nvfetcher.toml b/nvfetcher.toml index 32ed1ce..ac083ea 100644 --- a/nvfetcher.toml +++ b/nvfetcher.toml @@ -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" diff --git a/test.nix b/test.nix index 349b1bd..90ef0de 100644 --- a/test.nix +++ b/test.nix @@ -60,6 +60,7 @@ in btop = ctpEnable; cava = ctpEnable; fish = ctpEnable; + foot = ctpEnable; fzf = ctpEnable; git.enable = true; # Required for delta git.delta = ctpEnable;