This commit is contained in:
Torjus Håkestad 2024-02-27 11:59:28 +01:00
parent 555d4f3356
commit 77b5bbdf32
2 changed files with 16 additions and 0 deletions

View File

@ -7,10 +7,12 @@
users.${user} = {
imports = [
./programs/firefox
./programs/tmux
./zsh
./packages
];
firefox.enable = true;
tmux.enable = true;
home = {
username = "${user}";
homeDirectory = "/home/${user}";

View File

@ -0,0 +1,14 @@
{ pkgs, lib, config, ...}:
with lib;
let cfg = config.tmux.enable;
in {
options.tmux.enable = mkEnableOption "tmux";
config = mkIf cfg {
programs.tmux = {
enable = true;
prefix = "C-a";
terminal = "screen-256color";
};
};
}