aboutsummaryrefslogtreecommitdiff
path: root/home.nix
blob: b3ce6a238a13143363a864a781ef9e54f7ac6273 (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
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
{ pkgs, ... }:

{
  programs.home-manager = {
    enable = true;
    path = ''https://github.com/rycee/home-manager/archive/master.tar.gz'';
  };

  home = {
    keyboard.layout = "de";

    packages = with pkgs; [
    # terminals
      rxvt_unicode
      kitty
    # UI fonts
      iosevka
    # file viewers
      zathura
      sxiv
      mpv
      paraview
    # file management
      pcmanfm gvfs lxmenu-data shared_mime_info
      veracrypt
    # communication
      tdesktop
    # UI dev utilities (CLI utilities are added in project specific nix-shells)
      hotspot
      qcachegrind
      gitg
    ];

    # required to enable auto-mounting in pcmanfm
    sessionVariables = {
      GIO_EXTRA_MODULES = [ "${pkgs.gvfs}/lib/gio/modules" ];
    };

    # vim is configured globally for all users but common is the only GUI user
    file.".gvimrc".text = ''
      set guifont=Iosevka\ 10
      set linespace=2
      set guioptions=agim
      set guioptions-=m
      2match SpecialKeyTab /\t/
    '';

    file.".config/kitty/kitty.conf".source = ./conf/kitty.conf;
  };

  programs.git = {
    enable = true;
    userName  = "Adrian Kummerlaender";
    userEmail = "knairda@t-online.de";
    extraConfig.core.editor = "vim";
  };

  services.gpg-agent = {
    enable = true;
    defaultCacheTtl     = 120;
    enableSshSupport    = true;
    defaultCacheTtlSsh  = 120;
    enableScDaemon      = false;
  };

  xsession = {
    enable = true;
    initExtra = ''
      xsetroot -cursor_name left_ptr
      xset b off
    '';

    windowManager.xmonad = {
      enable = true;
      enableContribAndExtras = true;
      config = ./conf/xmonad/xmonad.hs;
    };
  };

  xresources.extraConfig = builtins.readFile ./conf/urxvt.Xresources;

  gtk = {
    enable = true;

    theme = let
      oomox-gtk-theme = pkgs.callPackage ./pkgs/oomox-gtk-theme.nix {
        pkgs-unstable = import <nixpkgs-unstable> {};
        theme = {
          accent_bg  = "aadb0f";
          bg         = "d8d8d8";
          fg         = "101010";
          btn_bg     = "f5f5f5";
          btn_fg     = "111111";
          caret_size = 0.04;
          caret1_fg  = "101010";
          caret2_fg  = "101010";
          hdr_btn_bg = "161616";
          hdr_btn_fg = "aadb0f";
          menu_bg    = "909737";
          menu_fg    = "1a1a1a";
          sel_bg     = "aadb0f";
          sel_fg     = "101010";
          txt_bg     = "ffffff";
          txt_fg     = "101010";
          gradient   = 0.0;
          roundness  = 0;
          spacing    = 1;
          wm_border_focus   = "909737";
          wm_border_unfocus = "909737";
          gtk3_generate_dark = false;
        };
      };
    in {
      name    = "oomox";
      package = oomox-gtk-theme;
    };

    iconTheme = let
      oomox-archdroid-icon-theme = pkgs.callPackage ./pkgs/oomox-archdroid-icon-theme.nix {
        color = "909737";
      };
    in {
      name    = "oomox-archdroid";
      package = oomox-archdroid-icon-theme;
    };

    gtk2.extraConfig = ''
      style "vimfix" { bg[NORMAL] = "#161616" }
      widget "vim-main-window.*GtkForm" style "vimfix"
    '';
  };

  programs.rofi = {
    enable = true;
    location = "top";
    font = "Iosevka 12";
    separator = "none";
    scrollbar = false;
    borderWidth =  6;
    yoffset     = -6;
    
    colors = {
      window = {
        background = "#222222";
        border     = "#aadb0f";
        separator  = "#000000";
      };
      rows = {
        normal = {
          background = "#222222";
          foreground = "#8e8e8e";
          backgroundAlt = "#161616";
          highlight = {
            background = "#111111";
            foreground = "#aadb0f";
          };
        };
        active = {
          background = "#222222";
          foreground = "#8e8e8e";
          backgroundAlt = "#161616";
          highlight = {
            background = "#111111";
            foreground = "#aadb0f";
          };
        };
        urgent = {
          background = "#222222";
          foreground = "#dc322f";
          backgroundAlt = "#161616";
          highlight = {
            background = "#dc322f";
            foreground = "#161616";
          };
        };
      };
    };

    extraConfig = ''
      rofi.modi: combi
      rofi.combi-modi: windowcd,drun,ssh
    '';
  };

  programs.firefox = {
    enable = true;
    enableAdobeFlash = true;
  };

  home.file.".config/zathura/zathurarc".text = builtins.readFile ./conf/pwmt/zathurarc;
}