Anthony Rodriguez
2ac966be49
Initially, I was using a weird combination of options in order to apply my theme dynamically. I was setting a read-only option from inside my modules, which was then used in every application that required it. What I ended up doing is refactoring everything in order to be inside of my theme module, and automatically configured when enabled, without doing any mkMerge/mkIf shenanigans in my other pieces of configuration. This is healthier, although it should be split up as the theme/default.nix got quite big.
18 lines
274 B
Nix
18 lines
274 B
Nix
{
|
|
osConfig,
|
|
config,
|
|
lib,
|
|
...
|
|
}: let
|
|
in {
|
|
programs.foot = {
|
|
enable = true;
|
|
settings = {
|
|
main = {
|
|
term = "xterm-256color";
|
|
font = "monospace:size=14";
|
|
shell = "${lib.getExe config.programs.fish.package}";
|
|
};
|
|
};
|
|
};
|
|
}
|