mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 12:19:07 +00:00
wrapper-manager/programs/zellij: init
This commit is contained in:
parent
64621b0b2e
commit
412c663648
@ -1,5 +1,6 @@
|
||||
{
|
||||
imports = [
|
||||
./programs/blender.nix
|
||||
./programs/zellij.nix
|
||||
];
|
||||
}
|
||||
|
32
modules/wrapper-manager/programs/zellij.nix
Normal file
32
modules/wrapper-manager/programs/zellij.nix
Normal file
@ -0,0 +1,32 @@
|
||||
{ lib, pkgs, config, ... }:
|
||||
|
||||
let
|
||||
cfg = config.programs.zellij;
|
||||
in
|
||||
{
|
||||
options.programs.zellij = {
|
||||
enable = lib.mkEnableOption "Zellij, a terminal multiplexer";
|
||||
|
||||
package = lib.mkPackageOption pkgs "zellij" { };
|
||||
|
||||
configFile = lib.mkOption {
|
||||
type = lib.types.path;
|
||||
description = ''
|
||||
The configuration file of the Zellij wrapper to be used. This module
|
||||
will use the environment variable `ZELLIJ_CONFIG_FILE` which would
|
||||
still allow overriding of the user's own if they choose to.
|
||||
'';
|
||||
example = lib.literalExpression ''
|
||||
./config/zellij/config.kdl
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
basePackages = [ cfg.package ];
|
||||
wrappers.zellij = {
|
||||
arg0 = lib.getExe' cfg.package "zellij";
|
||||
env.ZELLIJ_CONFIG_FILE = cfg.configFile;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user