feat(desktop): move terminal config to homes and use home-manager modules
This commit is contained in:
parent
ee2dfd8398
commit
a04688d17b
6 changed files with 30 additions and 25 deletions
24
modules/nixos/desktop/terminal/default.nix
Normal file
24
modules/nixos/desktop/terminal/default.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkEnableOption singleton optional;
|
||||
inherit (pkgs) kitty;
|
||||
cfg = config.desktop.terminal;
|
||||
in
|
||||
{
|
||||
options.desktop.terminal = {
|
||||
kitty.enable = mkEnableOption "";
|
||||
ghostty.enable = mkEnableOption "";
|
||||
};
|
||||
|
||||
config = {
|
||||
home-manager.sharedModules = singleton {
|
||||
home.packages = optional cfg.kitty.enable kitty;
|
||||
programs.ghostty.enable = cfg.ghostty.enable;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue