feat: add croc

This commit is contained in:
Leon Schwarzäugl 2025-06-29 15:31:16 +02:00
parent 6b44dcb023
commit 91fc0227bf
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
8 changed files with 169 additions and 11 deletions

View file

@ -9,6 +9,7 @@ in
home.sessionVariables = {
EDITOR = "e -w";
DISPLAY = ":0";
CROC_RELAY = "send.swarsel.win";
SWARSEL_LO_RES = config.swarselsystems.lowResolution;
SWARSEL_HI_RES = config.swarselsystems.highResolution;
};

View file

@ -11,6 +11,11 @@ in
};
};
config = lib.mkIf config.swarselsystems.modules.zsh {
sops.secrets = {
croc-password = { };
};
programs.zsh = {
enable = true;
shellAliases = lib.recursiveUpdate
@ -114,6 +119,7 @@ in
# ctrl + del
bindkey '^H' my-backward-delete-word
export CROC_PASS="$(cat ${config.sops.secrets.croc-password.path})"
'';
};
};