nixos/home/auth/home.nix

46 lines
929 B
Nix
Raw Normal View History

2025-01-13 11:52:09 +08:00
{
pkgs,
lib,
config,
...
}:
with lib;
{
# git signing configuration
programs.git = {
signing = {
signByDefault = true;
gpgPath = "${pkgs.openssh}/bin/ssh-keygen";
key = null;
};
extraConfig = {
user.signingkey = "~/.ssh/id_ed25519.pub";
gpg = {
format = "ssh";
# compiled from trusted keys in auth module
2025-01-13 11:52:09 +08:00
ssh.allowedSignersFile = toString (
pkgs.writeText "allowed_signers" (
foldr (key: folded: folded + "koishi@514fpv.one ${key}\n") "" config.passthrough.publicKeys
)
);
};
};
};
2024-03-19 08:56:21 +08:00
programs.ssh = {
enable = true;
matchBlocks = {
"edge.514fpv.io".port = 8086;
"sf.514fpv.io".port = 8087;
};
};
2024-04-08 11:24:37 +08:00
wayland.windowManager.sway.config.window.commands = mkIf config.passthrough.gui [
2025-01-13 11:52:09 +08:00
{
criteria.title = "Bitwarden";
command = "floating enable";
}
2024-04-08 11:24:37 +08:00
];
}