zaphyra's git: nixfiles

zaphyra's nixfiles

1 
2 
3 
4 
5 
6 
7 
8 
9 
10 
11 
12 
13 
14 
15 
16 
17 
18 
19 
20 
{
  config,
  pkgs,
  lib,
  ...
}:

{

  home.packages = [ pkgs.tgc.chaosctl ];

  programs.niri.settings.binds = with config.lib.niri.actions; {
    "Mod+Shift+D".action = spawn "${pkgs.writeShellScript "cccda-buzzer" ''
      export GNUPGHOME=${config.programs.gpg.homedir}
      export SSH_AUTH_SOCK=$(${lib.getExe' pkgs.gnupg "gpgconf"} --list-dirs agent-ssh-socket)
      ${lib.getExe' pkgs.libnotify "notify-send"} -e "CCCDA-Door" "$(${lib.getExe pkgs.tgc.chaosctl} door buzzer)"
    ''}";
  };

}