nixos/modules/shell/tmux/default.nix
2024-11-09 14:01:33 +04:00

18 lines
445 B
Nix

{ outputs, options, config, lib, pkgs, ... }:
let cfg = config.modules.shell.tmux;
in {
options.modules.shell.tmux = { enable = lib.mkEnableOption false; };
config = lib.mkIf cfg.enable {
environment.systemPackages = with pkgs; [ tmux ];
home-manager.users.sako = { pkgs, ... }: {
home.file = {
".tmux.conf" = {
enable = true;
source = ../../../config/tmux.conf;
};
};
};
};
}