2025-01-11 17:30:45 +08:00
|
|
|
{ config, lib, ... }:
|
|
|
|
|
let
|
|
|
|
|
cfg = config.youthlic.programs.foot;
|
|
|
|
|
in
|
|
|
|
|
{
|
|
|
|
|
options = {
|
|
|
|
|
youthlic.programs.foot = {
|
2025-01-17 15:28:53 +08:00
|
|
|
enable = lib.mkEnableOption "foot";
|
2025-01-11 17:30:45 +08:00
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
|
programs.foot = {
|
|
|
|
|
enable = true;
|
|
|
|
|
server.enable = true;
|
|
|
|
|
settings = builtins.fromINI (builtins.readFile ./foot.ini);
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
}
|