mirror of
https://github.com/danth/stylix
synced 2024-11-22 12:13:08 +00:00
Add module for Foot ✨
This commit is contained in:
parent
50dcc46fe6
commit
d4759279ce
1 changed files with 26 additions and 0 deletions
26
modules/foot/hm.nix
Normal file
26
modules/foot/hm.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{ pkgs, config, lib, ... }:
|
||||
|
||||
let
|
||||
cfg = config.stylix.targets.foot;
|
||||
|
||||
theme = config.lib.stylix.colors {
|
||||
templateRepo = pkgs.fetchFromGitHub {
|
||||
owner = "tinted-theming";
|
||||
repo = "base16-foot";
|
||||
rev = "22579065fbe21361b64d80bae798666efaa85ce0";
|
||||
sha256 = "gb43UufuN6iRu6MfTZP+a3GUUQ+hKa5e6G4IiWEc68A=";
|
||||
};
|
||||
};
|
||||
|
||||
in {
|
||||
options.stylix.targets.foot.enable =
|
||||
config.lib.stylix.mkEnableTarget "Foot" true;
|
||||
|
||||
config.programs.foot.settings.main = lib.mkIf cfg.enable {
|
||||
include = theme;
|
||||
font =
|
||||
with config.stylix.fonts;
|
||||
"${monospace.name}:size=${toString sizes.terminal}";
|
||||
dpi-aware = "no";
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue