blob: cacda8f12e1c84d883d1707167c3689711ea8a1d (
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
|
{
config,
lib,
pkgs,
...
}: let
cfg = config.getchoo.programs.defaultPrograms;
inherit (lib) mkDefault mkEnableOption mkIf;
in {
options.getchoo.programs.defaultPrograms.enable = mkEnableOption "default programs" // {default = true;};
imports = [
./chromium.nix
./firefox.nix
./git.nix
./gpg.nix
./mangohud.nix
./neovim
./ssh.nix
./vim.nix
];
config = mkIf cfg.enable {
home.packages = with pkgs; [
fd
nix-your-shell
nurl
rclone
restic
];
programs = {
btop.enable = mkDefault true;
direnv = {
enable = mkDefault true;
nix-direnv.enable = mkDefault true;
};
ripgrep.enable = mkDefault true;
nix-index-database.comma.enable = mkDefault true;
};
xdg =
{
enable = mkDefault true;
}
// (mkIf config.programs.btop.enable {
configFile."btop/themes/catppuccin_mocha.theme".source =
pkgs.fetchFromGitHub {
owner = "catppuccin";
repo = "btop";
rev = "ecb8562bb6181bb9f2285c360bbafeb383249ec3";
sha256 = "sha256-ovVtupO5jWUw6cwA3xEzRe1juUB8ykfarMRVTglx3mk=";
}
+ "/catppuccin_mocha.theme";
});
};
}
|