fix cli tools config
This commit is contained in:
parent
555068556f
commit
816b85e06e
9 changed files with 393 additions and 353 deletions
22
modules/home/shell/toolset/zoxide.nix
Normal file
22
modules/home/shell/toolset/zoxide.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{ config, lib, pkgs, user, ... }:
|
||||
let
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.options) mkEnableOption;
|
||||
|
||||
cfg = config.modules.${user}.shell.toolset.zoxide;
|
||||
in
|
||||
{
|
||||
options.modules.${user}.shell.toolset.zoxide = {
|
||||
enable = mkEnableOption "system-monitor";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
home-manager.users.${user} = {
|
||||
packages = with pkgs; [ zoxide ];
|
||||
|
||||
programs.zoxide = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue