Reorganized

This commit is contained in:
Jan-Bulthuis committed 2025-05-09 15:27:44 +02:00
1 parent c3c61ce654
commit 760815da50
145 files changed
-1444

No files matched your search

@@ -0,0 +1,17 @@
{
lib,
config,
pkgs,
...
}:
with lib;
{
options.default.terminal = mkOption {
type = types.str;
# TODO: Make sure everything works even without a default value here
# Maybe make sure most gui applications do not exist in the default specialisation
default = "foot";
description = "Default terminal application";
};
}
@@ -0,0 +1,35 @@
{
config,
lib,
pkgs,
...
}:
with lib;
let
cfg = config.modules.foot;
in
{
options.modules.foot.enable = mkEnableOption "foot";
config = mkIf cfg.enable {
default.terminal = mkDefault "${pkgs.foot}/bin/foot";
programs.foot = {
enable = true;
settings = {
main =
let
font = config.desktop.theming.fonts.monospace.name;
size = toString config.desktop.theming.fonts.monospace.recommendedSize;
in
{
font = mkForce "${font}:style=Regular:size=${size}";
font-bold = "${font}:style=Bold:size=${size}";
font-italic = "${font}:style=Italic:size=${size}";
font-bold-italic = "${font}:style=Bold Italic:size=${size}";
};
};
};
};
}