rearrange directory structure
This commit is contained in:
parent
2fe0f94a23
commit
67cb4995f9
33 changed files with 213 additions and 219 deletions
23
home/modules/terminal.nix
Normal file
23
home/modules/terminal.nix
Normal 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];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue