summaryrefslogtreecommitdiff
path: root/users/seth/module/programs/default.nix
blob: 38556cf00584cc34cd557fc8815f86cf14e47686 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{
  config,
  lib,
  pkgs,
  inputs,
  ...
}: let
  cfg = config.seth.programs;
in {
  options.seth.programs = {
    basePrograms.enable = lib.mkEnableOption "Base programs and configurations" // {default = true;};
  };

  imports = [
    inputs.catppuccin.homeManagerModules.catppuccin
    inputs.nix-index-database.hmModules.nix-index
    ./bat.nix
    ./chromium.nix
    ./eza.nix
    ./firefox
    ./git.nix
    ./gpg.nix
    ./mangohud.nix
    ./neovim.nix
    ./ssh.nix
    ./starship
    ./vim.nix
    ./vscode.nix
  ];

  config = lib.mkIf cfg.basePrograms.enable {
    home.packages = with pkgs; [
      fd
      nix-output-monitor
      nurl
      rclone
      restic
    ];

    catppuccin.flavour = "mocha";

    programs = {
      btop = {
        enable = true;
        catppuccin.enable = true;
      };

      direnv = {
        enable = true;
        nix-direnv.enable = true;
      };

      glamour.catppuccin.enable = true;

      ripgrep.enable = true;

      nix-index-database.comma.enable = true;
    };

    xdg.enable = true;
  };
}