33 lines
765 B
Nix
33 lines
765 B
Nix
{
|
|
moduleWithSystem,
|
|
inputs,
|
|
...
|
|
}: {
|
|
flake.nixosModules.foot = moduleWithSystem ({self', ...}: {
|
|
environment.systemPackages = with self'.packages; [
|
|
foot
|
|
];
|
|
});
|
|
# PerSystem, gives access to self' and inputs', as well as some helper functions
|
|
perSystem = {
|
|
inputs',
|
|
pkgs,
|
|
...
|
|
}: {
|
|
# Simple wrapper for foot, sets background color to bright red
|
|
packages.foot = let
|
|
fira-mono = pkgs.nerd-fonts.fira-mono;
|
|
fontsConfig = pkgs.makeFontsConf {
|
|
fontDirectories = [fira-mono];
|
|
};
|
|
in
|
|
inputs.wrappers.wrappers.foot.wrap {
|
|
inherit pkgs;
|
|
env."FONTSCONFIG_FILE" = "${fontsConfig}";
|
|
settings = {
|
|
main.font = "FiraMono Nerd Font:size=18";
|
|
};
|
|
};
|
|
};
|
|
}
|