foot: init module

This commit is contained in:
Artur Manuel 2025-04-17 15:37:04 +01:00
commit 0f84fdf8b4
Signed by: amadaluzia
SSH key fingerprint: SHA256:ubvwT66gNUKSsgSzEb2UQnX8pzTq5N+r8eRVYGJJm4Q
4 changed files with 26 additions and 4 deletions

22
hosts/shared/foot.nix Normal file
View file

@ -0,0 +1,22 @@
{
config,
lib,
pkgs,
...
}:
let
cfg = config.alqueva.programs.foot;
inherit (lib.modules) mkIf;
inherit (lib.options) mkEnableOption mkPackageOption;
in
{
options.alqueva.programs.foot = {
enable = mkEnableOption "foot";
package = mkPackageOption pkgs "foot" { };
};
config = mkIf cfg.enable {
environment.systemPackages = [ cfg.package ];
systemd.packages = [ cfg.package ];
};
}