rearrange directory structure

This commit is contained in:
Tristan 2024-01-05 21:53:27 +00:00
parent 2fe0f94a23
commit 67cb4995f9
33 changed files with 213 additions and 219 deletions

23
home/modules/terminal.nix Normal file
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];
};
}