Extract CLI
This commit is contained in:
parent
e5723023ea
commit
eeaaea35b9
|
@ -1,17 +1,27 @@
|
||||||
{ config, pkgs, ... }: {
|
{ config, lib, pkgs, ... }:
|
||||||
programs.zsh = {
|
let extras = config.my.system.cli.extras;
|
||||||
enable = true;
|
in with lib; {
|
||||||
enableCompletion = true;
|
options = {
|
||||||
|
my.system.cli.extras = {
|
||||||
|
enable = mkOption {
|
||||||
|
default = true;
|
||||||
|
type = with types; bool;
|
||||||
|
};
|
||||||
|
pkgs = mkOption {
|
||||||
|
default = with pkgs; [ htop silver-searcher jq ripgrep tmux ];
|
||||||
|
type = with types; listOf package;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
config = {
|
||||||
|
|
||||||
|
programs.zsh = {
|
||||||
|
enable = true;
|
||||||
|
enableCompletion = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs;
|
||||||
|
[ gnumake git vim killall unzip zsh ]
|
||||||
|
++ optionals (extras.enable) extras.pkgs;
|
||||||
};
|
};
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
cmake
|
|
||||||
htop
|
|
||||||
jq
|
|
||||||
killall
|
|
||||||
ripgrep
|
|
||||||
silver-searcher
|
|
||||||
tmux
|
|
||||||
unzip
|
|
||||||
zsh
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,14 +2,6 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
in {
|
in {
|
||||||
|
|
||||||
imports = [
|
|
||||||
#../modules/. # This imports /modules/default.nix
|
|
||||||
#../modules/system/xdg.nix
|
|
||||||
];
|
|
||||||
# These are the most basic tools I need.
|
|
||||||
environment.systemPackages = with pkgs; [ nixfmt git gnumake vim zsh ];
|
|
||||||
|
|
||||||
# Some programs need SUID wrappers, can be configured further or are
|
# Some programs need SUID wrappers, can be configured further or are
|
||||||
# started in user sessions.
|
# started in user sessions.
|
||||||
programs.mtr.enable = true;
|
programs.mtr.enable = true;
|
||||||
|
|
Reference in New Issue
Block a user