foot: init module
This commit is contained in:
parent
f5b3a4f3e2
commit
0f84fdf8b4
4 changed files with 26 additions and 4 deletions
22
hosts/shared/foot.nix
Normal file
22
hosts/shared/foot.nix
Normal 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 ];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue