summaryrefslogtreecommitdiff
path: root/modules/base/packages.nix
blob: a082196df26b37cb98dfc50c5720b59861212bf3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
  config,
  lib,
  pkgs,
  ...
}: let
  cfg = config.getchoo.base.defaultPackages;
  inherit (lib) mkEnableOption mkIf;
in {
  options.getchoo.base.defaultPackages.enable = mkEnableOption "base module default packages";

  config = mkIf cfg.enable {
    environment.systemPackages = with pkgs; [
      cachix
      hyfetch
      neofetch
      pinentry-curses
      python311
    ];

    programs = {
      git.enable = true;

      gnupg = {
        agent = {
          enable = true;
          pinentryFlavor = lib.mkDefault "curses";
        };
      };

      vim.defaultEditor = true;
    };
  };
}