move basic cli pkgs that doesn't need extra config to a module
This commit is contained in:
parent
b902e9137e
commit
3b1d577018
@ -16,24 +16,17 @@
|
|||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
home-manager
|
home-manager
|
||||||
wget
|
|
||||||
kitty
|
kitty
|
||||||
tldr
|
|
||||||
fastfetch
|
fastfetch
|
||||||
tree
|
|
||||||
font-awesome
|
font-awesome
|
||||||
dig
|
|
||||||
btop
|
|
||||||
thunderbird
|
thunderbird
|
||||||
lf
|
lf
|
||||||
file
|
|
||||||
qalculate-qt
|
qalculate-qt
|
||||||
baobab
|
baobab
|
||||||
arduino-ide
|
arduino-ide
|
||||||
piper
|
piper
|
||||||
element-desktop
|
element-desktop
|
||||||
calibre
|
calibre
|
||||||
vlc
|
|
||||||
loupe
|
loupe
|
||||||
gimp3
|
gimp3
|
||||||
mullvad-vpn
|
mullvad-vpn
|
||||||
|
|||||||
@ -4,5 +4,6 @@
|
|||||||
./nh.nix
|
./nh.nix
|
||||||
./nvf.nix
|
./nvf.nix
|
||||||
./fzf.nix
|
./fzf.nix
|
||||||
|
./pkgs.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
23
modules/nix/base-cli/pkgs.nix
Normal file
23
modules/nix/base-cli/pkgs.nix
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
{ config, lib, pkgs, ...}:
|
||||||
|
let
|
||||||
|
inherit (lib) mkIf mkOption types;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.smayzy.base-cli-pkgs.enable = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
default = false;
|
||||||
|
description = "install base cli pkgs that doesn't need extra config";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf config.smayzy.base-cli-pkgs.enable {
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
wget
|
||||||
|
tldr
|
||||||
|
tree
|
||||||
|
dig
|
||||||
|
btop
|
||||||
|
file
|
||||||
|
vim
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
@ -15,7 +15,7 @@ in
|
|||||||
nh.enable = true;
|
nh.enable = true;
|
||||||
fzf.enable = true;
|
fzf.enable = true;
|
||||||
zsh.enable = true;
|
zsh.enable = true;
|
||||||
|
base-cli-pkgs.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user