aboutsummaryrefslogtreecommitdiff
path: root/home.nix
blob: 91fa3bee2e1a4ff8aab80c09c86971c60e519e6d (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
{ config, pkgs, epkgs, lib, ... }:
let
  localPkgs = import ./packages/default.nix { pkgs = pkgs; };
in
{
  imports = [
    ./overlays-home.nix
    ./modules/music.home.nix
    ./modules/git.home.nix
    ./modules/xresources.home.nix
    ./modules/mpv.home.nix
  ];

  home.packages = with pkgs; [
    yarn
  ];

  # programs.emacs = {
  #   enable = true;
  # };
  # services.emacs = {
  #   enable = true;
  #   client.enable = true;
  # };
  # programs.direnv = {
  #   enable = true;
  #   enableNixDirenvIntegration = true;
  # };

  # xdg.configFile."mimeapps.list".text = ''
  #   [Default Applications]
  #   text/html=browser-select.desktop
  #   x-scheme-handler/http=browser-select.desktop
  #   x-scheme-handler/https=browser-select.desktop
  #   x-scheme-handler/about=browser-select.desktop
  #   x-scheme-handler/mailto=thunderbird.desktop;
  #   x-scheme-handler/unknown=browser-select.desktop
  #   image/png=sxiv.desktop
  #   image/jpeg=sxiv.desktop
  # '';

  services.easyeffects = {
    enable = true;
    # preset = "default";
  };

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

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

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

  services.udiskie = {
    enable = true;
    automount = true;
    notify = true;
    tray = "never";
  };
  systemd.user.services.udiskie = {
    Install.WantedBy = lib.mkForce [ "default.target" ];
    Unit.After = lib.mkForce [ "udisks2.service" ];
  };

  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 = "qt";
    # pinentryFlavor = null;
    # extraConfig = ''
    #   pinentry-program ${localPkgs.anypinentry}/bin/anypinentry
    # '';
  };

  home.file = {
    ".config/xorg".source = ./config/xorg;
    ".config/zsh".source = ./config/zsh;
    ".config/nvim".source = ./config/nvim;
    ".config/qutebrowser".source = ./config/qutebrowser;
    ".config/sxiv".source = ./config/sxiv;
    ".local/share/qutebrowser/userscripts".source = ./config/qutebrowser/userscripts;
    ".local/share/qutebrowser/greasemonkey".source = ./config/qutebrowser/greasemonkey;
    ".config/dunst".source = ./config/dunst;
    ".config/lf".source = ./config/lf;
    ".config/picom.conf".source = ./config/picom.conf;
    ".wyrdrc".source = ./config/remind/.wyrdrc;
    "scripts".source = ./scripts;
    ".config/bottom/bottom.toml".source = ./config/bottom.toml;
  };

  # https://search.nixos.org/options?channel=unstable&from=0&size=50&sort=relevance&type=packages&query=programs.chromium
  # programs.chromium = {
  #   enable = true;
  #   package = pkgs.brave;
  #   commandLineArgs = [ "--enable-devtools-experiments" "" ];
  #   # --file_chooser, --enable-devtools-experiments --enabled-features --disabled-features --flag-switches-begin --flag-switches-end
  #   extensions = [
  #     { id = "fmkadmapgofadopljbjfkapdkoienihi"; } # React devtools
  #     { id = "dbepggeogbaibhgnhhndojpepiihcmeb"; } # Vimium
  #     { id = "iohjgamcilhbgmhbnllfolmkmmekfmci"; } # Jam recording
  #     { id = "jnkmfdileelhofjcijamephohjechhna"; } # GA debugger
  #   ];
  # };
}