34 lines
833 B
Nix
34 lines
833 B
Nix
{ pkgs, lib, config, ... }:
|
|
|
|
with lib;
|
|
let cfg =
|
|
config.modules.packages;
|
|
screen = pkgs.writeShellScriptBin "screen" ''${builtins.readFile ./screen}'';
|
|
bandw = pkgs.writeShellScriptBin "bandw" ''${builtins.readFile ./bandw}'';
|
|
maintenance = pkgs.writeShellScriptBin "maintenance" ''${builtins.readFile ./maintenance}'';
|
|
|
|
in {
|
|
options.modules.packages = { enable = mkEnableOption "packages"; };
|
|
config = mkIf cfg.enable {
|
|
home.packages = with pkgs; [
|
|
# C
|
|
gcc
|
|
gdb
|
|
gnumake
|
|
clang
|
|
clang-tools
|
|
# nix
|
|
nil
|
|
alejandra
|
|
# cli tools
|
|
bat
|
|
eza
|
|
fzf
|
|
ripgrep
|
|
unzip
|
|
tealdeer
|
|
ffmpeg
|
|
btop
|
|
];
|
|
};
|
|
}
|