move foot to module, and disable it.

This commit is contained in:
ulic-youthlic 2025-01-11 17:30:45 +08:00
parent 49f3d01d1e
commit 71078e81a1
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
5 changed files with 27 additions and 9 deletions

View file

@ -0,0 +1,25 @@
{ config, lib, ... }:
let
cfg = config.youthlic.programs.foot;
in
{
options = {
youthlic.programs.foot = {
enable = lib.mkOption {
type = lib.types.bool;
default = true;
example = false;
description = ''
whether use foot terminal
'';
};
};
};
config = lib.mkIf cfg.enable {
programs.foot = {
enable = true;
server.enable = true;
settings = builtins.fromINI (builtins.readFile ./foot.ini);
};
};
}