feat(tmux): add enable option
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./bash.nix
|
./bash.nix
|
||||||
@@ -5,4 +10,6 @@
|
|||||||
./prompt.nix
|
./prompt.nix
|
||||||
../tmux
|
../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; [
|
home.packages = with pkgs; [
|
||||||
tmuxp
|
tmuxp
|
||||||
reptyr
|
reptyr
|
||||||
|
|||||||
Reference in New Issue
Block a user