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

  home.packages = with pkgs; [
    yarn
  ];

  dconf.settings = {
    "org/virt-manager/virt-manager/connections" = {
      autoconnect = ["qemu:///system"];
      uris = ["qemu:///system"];
    };
  };

  # 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
  # '';

  programs.obs-studio = {
    enable = true;
    # enableVirtualCamera = true;
    # package = pkgs.obs-studio.override {
    #   browserSupport = true;
    # };
    plugins = [
      pkgs.obs-studio-plugins.obs-pipewire-audio-capture
      pkgs.obs-studio-plugins.obs-backgroundremoval
      # pkgs.obs-studio-plugins.obs-webkitgtk
    ];
  };

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

  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;
    # pinentryPackage = pkgs.pinentry-qt;
    pinentry.package = localPkgs.anypinentry;
    # 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;
  };
}