aboutsummaryrefslogtreecommitdiff
path: root/home.nix
blob: 3f8b07491b327bd32e49f0622a0122e233e4a788 (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
{ config, pkgs, ... }:

{
  # Let Home Manager install and manage itself.
  programs.home-manager.enable = true;

  # This value determines the Home Manager release that your
  # configuration is compatible with. This helps avoid breakage
  # when a new Home Manager release introduces backwards
  # incompatible changes.
  #
  # You can update Home Manager without changing this value. See
  # the Home Manager release notes for a list of state version
  # changes in each release.
  home.stateVersion = "20.03";

  nixpkgs.config.allowUnfree = true;

  home.packages = with pkgs; [
    openttd
    vcv-rack
    cawbird
    unzip
    scrot
    nnn
    file
    ripgrep
    p7zip
    obs-studio
    rtorrent
    weechat
    sc-controller

    nodePackages.node2nix
  ];

  imports = [
    ./i3.nix
    ./apvlv.nix
    ./lutris.nix
    ./htop.nix
    ./git.nix
    ./bash.nix
    ./xmonad.nix
    ./discord.nix
    ./vim.nix
    ./conjure.nix
    ./rofi.nix
  ];

  home.file.".Xmodmap" = rec {
    executable = false;
    onChange = "${pkgs.xorg.xmodmap}/bin/xmodmap ${target}";
    target = "./.Xmodmap";
    source = ./Xmodmap;
  };

  xsession = {
    enable = true;

    initExtra = ''
      ${pkgs.feh}/bin/feh --bg-center --no-fehbg \
        "$HOME/Pictures/vaporwave-bg/Vaporwave Goddesses Temple.png" \
        "$HOME/Pictures/vaporwave-bg/b_vap2.png"

      ${pkgs.xorg.xset}/bin/xset mouse 1/1 1
    '';
  };

  programs.fzf = {
    enable = true;
    enableBashIntegration = true;
  };

  programs.urxvt = {
    enable = true;

    fonts = [ "xft:Hack:size=9" ];
    iso14755 = false;
    scroll.bar.enable = false;

    extraConfig = {
      "internalBorder" = 0;
      "externalBorder" = 0;
      "background" = "#1c1b1a";
      "foreground" = "#f8f6f2";
      "cursorColor" = "#aeee00";
      "scrollColor" = "#45413b";
      "fadeColor" = "#ffffff";
      "fading" = 20;

      # black
      "color0" = "#141413";
      "color8" = "#000000";
      # red
      "color1" = "#ff2c4b";
      "color9" = "#ff2c4b";
      # green
      "color2" = "#aeee00";
      "color10" = "#aeee00";
      # yellow
      "color3" = "#fade3e";
      "color11" = "#ffa724";
      # blue
      "color4" = "#0a9dff";
      "color12" = "#0a9dff";
      # magenta
      "color5" = "#ff9eb8";
      "color13" = "#ff9eb8";
      # cyan
      "color6" = "#8cffba";
      "color14" = "#8cffba";
      # white
      "color7" = "#d9cec3";
      "color15" = "#ffffff";
    };
  };

  programs.firefox = {
    enable = true;

    enableAdobeFlash = false;
  };

}