nixos/modules/desktop/wezterm/default.nix

28 lines
453 B
Nix
Raw Normal View History

2024-07-07 13:31:42 +04:00
{
options,
config,
lib,
pkgs,
...
}:
2024-08-01 16:24:09 +04:00
let
2024-07-07 13:31:42 +04:00
cfg = config.modules.desktop.wezterm;
in {
options.modules.desktop.wezterm = {
2024-08-01 16:24:09 +04:00
enable = lib.mkEnableOption false;
2024-07-07 13:31:42 +04:00
};
2024-08-01 16:24:09 +04:00
config = lib.mkIf cfg.enable {
2024-07-07 13:31:42 +04:00
users.users.sako.packages = with pkgs; [
wezterm
];
2024-07-07 13:45:37 +04:00
2024-07-07 14:08:46 +04:00
home-manager.users.sako = {...}: {
2024-07-07 14:08:09 +04:00
home.file.".wezterm.lua" = {
enable = true;
source = ../../../config/wezterm/wezterm.lua;
};
2024-07-07 13:45:37 +04:00
};
2024-07-07 13:31:42 +04:00
};
}