mirror of
https://git.gay/xqtc/nixos-config
synced 2024-11-22 15:30:33 +01:00
23 lines
577 B
Nix
23 lines
577 B
Nix
{
|
|
inputs,
|
|
lib,
|
|
config,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
age.identityPaths = ["${config.home.homeDirectory}/.ssh/agenix"]; # Use this key to decrypt
|
|
home.packages = [
|
|
inputs.agenix.packages.x86_64-linux.default # Install CLI tool to encrypt
|
|
];
|
|
age.secrets.xqtc_id_ed25519 = {
|
|
file = ../secrets/xqtc_id_ed25519.age;
|
|
path = "${config.home.homeDirectory}/.ssh/id_ed25519";
|
|
mode = "600";
|
|
};
|
|
age.secrets.xqtc_id_ed25519_pub = {
|
|
file = ../secrets/xqtc_id_ed25519_pub.age;
|
|
path = "${config.home.homeDirectory}/.ssh/id_ed25519.pub";
|
|
mode = "640";
|
|
};
|
|
}
|