nixos/modules/shell/tmux/default.nix

19 lines
445 B
Nix
Raw Normal View History

2024-11-09 14:01:33 +04:00
{ outputs, options, config, lib, pkgs, ... }:
let cfg = config.modules.shell.tmux;
in {
options.modules.shell.tmux = { enable = lib.mkEnableOption false; };
2023-08-02 16:30:57 +04:00
2024-08-01 16:24:09 +04:00
config = lib.mkIf cfg.enable {
2024-11-09 14:01:33 +04:00
environment.systemPackages = with pkgs; [ tmux ];
home-manager.users.sako = { pkgs, ... }: {
home.file = {
".tmux.conf" = {
enable = true;
source = ../../../config/tmux.conf;
};
};
};
2023-08-02 16:30:57 +04:00
};
}