-
Notifications
You must be signed in to change notification settings - Fork 2
/
catppuccin.nix
53 lines (50 loc) · 1.3 KB
/
catppuccin.nix
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
{ self, lib, ... }:
let
flavor = "mocha";
in
{
flake.modules = {
nixos.desktop = {
imports = [ self.inputs.catppuccin.nixosModules.catppuccin ];
catppuccin = {
enable = true;
inherit flavor;
};
};
homeManager.home = {
imports = [ self.inputs.catppuccin.homeManagerModules.catppuccin ];
options = {
style = {
windowOpacity = lib.mkOption {
type = lib.types.numbers.between 0 1.0;
default = 1.0;
};
bellDuration = lib.mkOption {
type = lib.types.numbers.between 0 1000;
default = 200.0;
};
};
};
config = {
catppuccin = {
enable = true;
inherit flavor;
cursors.enable = true;
# IFD
swaylock.enable = false;
mako.enable = false;
};
programs.chromium.extensions = [ { id = "bkkmolkhemgaeaeggcmfbghljjjoofoh"; } ];
gtk.gtk2.extraConfig = ''
gtk-theme-name="Adwaita-dark"
'';
gtk.gtk3.extraConfig.gtk-application-prefer-dark-theme = 1;
gtk.gtk4.extraConfig.gtk-application-prefer-dark-theme = 1;
};
};
nixvim.default.colorschemes.catppuccin = {
enable = true;
settings.flavour = flavor;
};
};
}