mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 12:19:07 +00:00
programs/wezterm: create module
This commit is contained in:
parent
70de1fc6fa
commit
0126b4e1e7
23
modules/nixos/programs/wezterm.nix
Normal file
23
modules/nixos/programs/wezterm.nix
Normal file
@ -0,0 +1,23 @@
|
||||
{ config, options, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.programs.wezterm;
|
||||
in {
|
||||
options.programs.wezterm = {
|
||||
enable = lib.mkEnableOption "Wezterm terminal emulator";
|
||||
package = lib.mkOption {
|
||||
type = lib.types.package;
|
||||
default = pkgs.wezterm;
|
||||
description = "Package containing <command>wezterm</command> binary.";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
environment.systemPackages = [ cfg.package ];
|
||||
|
||||
# This is needed for shell integration and applying semantic zones.
|
||||
environment.interactiveShellInit = ''
|
||||
. ${cfg.package}/etc/profiles.d/wezterm.sh
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user