summaryrefslogtreecommitdiff
path: root/users/common.nix
blob: b30a8086e58b17cbe7a868ddace1ec164ae98d54 (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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
{
  pkgs,
  config,
  ...
}:
{
  programs.git = {
    enable = true;
    package = pkgs.git.override { withLibsecret = true; };
    settings = {
      user = {
        name = "brustybee";
        email = "bee@4d2.org";
        signingkey = "42177A22EA630575";
      };
      init.defaultBranch = "main";
      credential.helper = "libsecret";
      commit.gpgsign = true;
      tag.gpgsign = true;
    };
  };

  home.pointerCursor = {
    size = 16;
    enable = true;
    x11.enable = true;
    gtk.enable = true;
    hyprcursor.size = 16;
    dotIcons.enable = true;
    hyprcursor.enable = true;
    name = "material_light_cursors";
    package = pkgs.material-cursors;
  };

  dconf.settings = {
    "org/gnome/desktop/interface" = {
      color-scheme = "prefer-dark";
    };
    "org/gnome/desktop/wm/preferences" = {
      button-layout = "";
    };
  };

  gtk = {
    enable = true;
    theme = {
      package = pkgs.adw-gtk3;
      name = "adw-gtk3";
    };
    iconTheme = {
      name = "Adwaita";
      package = pkgs.adwaita-icon-theme;
    };
    gtk3 = {
      bookmarks = [
        "file://${config.home.homeDirectory}/Downloads"
        "file://${config.home.homeDirectory}/Pictures"
        "file://${config.home.homeDirectory}/Documents"
        "file://${config.home.homeDirectory}/Videos"
        "file://${config.home.homeDirectory}/Music"
      ];
      extraConfig = {
        gtk-cursor-blink = false;
        gtk-recent-files-limit = 20;
        gtk-decoration-layout = ":";
      };
      extraCss = ''
        @import url("colors.css");
      '';
    };

    gtk4 = {
      extraConfig = {
        gtk-cursor-blink = false;
        gtk-recent-files-limit = 20;
        gtk-decoration-layout = ":";
      };
      extraCss = ''
        @import url("colors.css");
      '';
    };
  };

  xdg.dataFile."keyrings/default".text = "login";
  xdg.userDirs = {
    enable = true;
    createDirectories = true;
  };

  programs.yazi = {
    enable = true;
    shellWrapperName = "yy";
  };

  home.packages = with pkgs; [
    neovim
    nautilus
    opencode
    totem
    imv
    gnome-calculator
    papers
    cava
    (pkgs.obsidian.override {
      electron = pkgs.electron_40;
    })
  ];
}