Files
nixy/hosts/laptop/secrets/default.nix
T
2026-08-13 20:03:07 +02:00

47 lines
999 B
Nix

# Those are my secrets, encrypted with sops
# You shouldn't import this file, unless you edit it
{
pkgs,
config,
...
}: let
username = config.var.username;
home = "/home/${username}";
in {
sops = {
age.keyFile = "${home}/.config/sops-nix/age/keys.txt";
defaultSopsFile = ./secrets.yaml;
secrets = {
ssh-config = {
owner = username;
path = "${home}/.ssh/config";
};
ssh-github-key = {
owner = username;
path = "${home}/.ssh/github";
};
anotherhadi-pgp-key = {
owner = username;
path = "${home}/.ssh/anotherhadi-priv.asc";
};
ssh-jack-key = {
owner = username;
path = "${home}/.ssh/jack";
};
signing-key = {
owner = username;
path = "${home}/.ssh/key";
};
signing-pub-key = {
owner = username;
path = "${home}/.ssh/key.pub";
};
};
};
environment.systemPackages = with pkgs; [
sops
age
];
}