feat(tmux): add enable option
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
{
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./bash.nix
|
||||
@@ -5,4 +10,6 @@
|
||||
./prompt.nix
|
||||
../tmux
|
||||
];
|
||||
|
||||
tmux.enable = lib.mkDefault true;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,18 @@
|
||||
{ pkgs, dotsPath, ... }:
|
||||
|
||||
{
|
||||
config = {
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
dotsPath,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
cfg = config.tmux;
|
||||
in
|
||||
{
|
||||
options.tmux.enable = lib.mkEnableOption "tmux";
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
home.packages = with pkgs; [
|
||||
tmuxp
|
||||
reptyr
|
||||
|
||||
Reference in New Issue
Block a user