move more modules to home

This commit is contained in:
Tristan 2024-01-05 20:59:06 +00:00
parent 9f0cee2627
commit f893e3b8e2
18 changed files with 443 additions and 484 deletions

View file

@ -0,0 +1,23 @@
{
lib,
pkgs,
config,
...
}: let
term = config.programs.terminal;
in {
options.programs = {
terminal = lib.mkPackageOption pkgs "foot" {
example = "pkgs.alacritty";
};
};
config = {
programs.foot = lib.mkIf (term == pkgs.foot) {
enable = true;
server.enable = true;
};
home.packages = [term];
};
}