created cli module
This commit is contained in:
parent
09826442c9
commit
91c1e2d695
3 changed files with 40 additions and 28 deletions
|
@ -129,11 +129,9 @@
|
|||
mattermost-desktop
|
||||
gh
|
||||
gparted
|
||||
dig
|
||||
prismlauncher # REMOVE AND MOVE TO games module after refactoring
|
||||
gnome-extension-manager # DEBUG
|
||||
gnomeExtensions.grand-theft-focus
|
||||
joplin-desktop
|
||||
albert
|
||||
];
|
||||
|
||||
programs = {
|
||||
|
|
38
nixosModules/dev/cli.nix
Normal file
38
nixosModules/dev/cli.nix
Normal file
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}@inputs:
|
||||
let
|
||||
cfg = config.krop.cli;
|
||||
in
|
||||
{
|
||||
options.krop.cli = {
|
||||
enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = true;
|
||||
example = true;
|
||||
description = "Whether to install the most used tools";
|
||||
};
|
||||
install-editors = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = true;
|
||||
example = true;
|
||||
description = "Whether to install cli editors";
|
||||
};
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
environment.systemPackages =
|
||||
with pkgs;
|
||||
[
|
||||
openssl_3_3
|
||||
dig
|
||||
]
|
||||
++ lib.optionals cfg.install-editors [
|
||||
pkgs.lazygit
|
||||
pkgs.lazydocker
|
||||
pkgs.micro-with-wl-clipboard
|
||||
];
|
||||
};
|
||||
}
|
|
@ -4,34 +4,10 @@
|
|||
lib,
|
||||
...
|
||||
}@inputs:
|
||||
let
|
||||
cfg = config.krop.devtools;
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
./python.nix
|
||||
./ide.nix
|
||||
./cli.nix
|
||||
];
|
||||
options.krop.devtools = {
|
||||
installTools = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = true;
|
||||
example = true;
|
||||
description = "Whether to install the most used tools";
|
||||
};
|
||||
};
|
||||
|
||||
config =
|
||||
let
|
||||
tools = with pkgs; [
|
||||
lazygit
|
||||
lazydocker
|
||||
micro-with-wl-clipboard
|
||||
albert
|
||||
openssl_3_3
|
||||
];
|
||||
in
|
||||
{
|
||||
environment.systemPackages = tools;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue