aboutsummaryrefslogtreecommitdiff
path: root/home.nix
blob: a70e8caf8dd564e95a36504cece25633c622254e (plain) (blame)
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
{ config, pkgs, epkgs, ... }:
let
  localPkgs = import ./packages/default.nix { pkgs = pkgs; };
in {
  imports = [
    ./overlays-home.nix
    ./modules/music.home.nix
    ./modules/git.home.nix
  ];

  home.packages = with pkgs; [
    yarn
  ];

  programs.emacs = {
    enable = true;
  };
  services.emacs = {
    enable = true;
    client.enable = true;
  };

  programs.lsd = {
    enable = true;
    enableAliases = true;
  };

  services.syncthing = {
    enable = true;
    tray = false;
  };

  services.unclutter = {
    enable = true;
    timeout = 5;
  };

  services.udiskie = {
    enable = true;
    tray = "always";
  };

  programs.password-store = {
    enable = true;
    package = pkgs.pass.withExtensions(exts: [ exts.pass-otp ]);
    settings = {
      PASSWORD_STORE_DIR = "~/.config/password-store";
    };
  };
  services.gpg-agent = {
    enable = true;
    maxCacheTtl = 864000;
    defaultCacheTtl = 864000;
    enableSshSupport = false;
    #pinentryFlavor = null;
    #extraConfig = ''
      #pinentry-program /home/imsohexy/nixos/packages/anypinentry/source/anypinentry
    #'';
  };

  # services.network-manager-applet.enable = true;

  xresources.properties = let
    bg = "#0f0c19";
    fg = "#d8dee9";
    accent = "#4e3aA3";
  in {
    "*.foreground" =   fg;
    "*.background" =   bg;
    "*.cursorColor" =  fg;
    "*.accent" =       accent;

    "*.color0" =  "#15121f";
    "*.color8" =  "#555555";

    "*.color1" =  "#e06c75";
    "*.color9" =  "#bf616a";

    "*.color2" =  "#98C379";
    "*.color10" =  "#a3be8c";

    "*.color3" =  "#E5C07B";
    "*.color11" =  "#f7b731";

    "*.color4" =  "#60a3bc";
    "*.color12" =  "#5e81ac";

    "*.color5" =  "#4e3aA3";
    "*.color13" =  "#4e3aA3";

    "*.color6" =  "#56B6C2";
    "*.color14" =  "#0fb9b1";

    "*.color7" =  "#ABB2BF";
    "*.color15" =  "#ebdbb2";

    "dmenu.background" =     bg;
    "dmenu.foreground" =     fg;
    "dmenu.selbackground" =  accent;
    "dmenu.selforeground" =  fg;

    "dmenu.highlightbg" =    bg;
    "dmenu.highlightfg" =    accent;
    "dmenu.highlightselbg" = accent;
    "dmenu.highlightselfg" = bg;

    "dwm.normbordercolor" =  bg;
    "dwm.normbgcolor" =      bg;
    "dwm.normfgcolor" =      fg;

    "dwm.selbordercolor" =   accent;
    "dwm.selbgcolor" =       accent;
    "dwm.selfgcolor" =       fg;
  };

  home.file = {
    ".config/xorg".source = ./config/xorg;
    ".config/zsh".source = ./config/zsh;
    ".config/nvim".source = ./config/nvim;
    ".config/qutebrowser".source = ./config/qutebrowser;
    ".local/share/qutebrowser/userscripts".source = ./config/qutebrowser/userscripts;
    ".local/share/qutebrowser/greasemonkey".source = ./config/qutebrowser/greasemonkey;
    # ".local/share/qutebrowser/sessions".source = ./private-config/qutebrowser/sessions;
    ".config/dunst".source = ./config/dunst;
    ".config/lf".source = ./config/lf;
    #"Pictures/wallpapers".source = ./extras/wallpapers;
    "scripts".source = ./scripts;
  };

  #services.picom = {
    #enable = true;
    #backend = "glx";
    #inactiveDim = "0.3";
    #opacityRule = [
      #"98:class_g = 'St' && focused"
      #"85:class_g = 'St' && !focused"
      #"90:class_g = 'qutebrowser' && !focused"
      #"100:class_g = 'qutebrowser' && focused"
    #];
    #extraOptions = ''
      #focus-exclude = [ "class_g = 'dwm'", "class_g = 'dmenu'"];
    #'';
    #menuOpacity = "0.9";
  #};
}