27 lines
455 B
Nix
27 lines
455 B
Nix
{
|
|
options,
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
with lib; let
|
|
cfg = config.modules.desktop.wezterm;
|
|
in {
|
|
options.modules.desktop.wezterm = {
|
|
enable = mkEnableOption false;
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
users.users.sako.packages = with pkgs; [
|
|
wezterm
|
|
];
|
|
|
|
home-manager.users.sako = {...}: {
|
|
home.file.".wezterm.lua" = {
|
|
enable = true;
|
|
source = ../../../config/wezterm/wezterm.lua;
|
|
};
|
|
};
|
|
};
|
|
}
|