Files
nixy/hosts/work/secrets/default.nix
T
Hadi a50e14d04c chmod secrets
Signed-off-by: Hadi <hadi@example.fr>
2026-08-17 14:14:54 +02:00

43 lines
866 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/age/keys.txt";
defaultSopsFile = ./secrets.yaml;
secrets = {
ssh-config = {
owner = username;
mode = "0600";
path = "${home}/.ssh/config";
};
netrc = {
owner = username;
mode = "0600";
path = "${home}/.netrc";
};
ssh-github-key = {
owner = username;
mode = "0600";
path = "${home}/.ssh/github";
};
ssh-gitlab-key = {
owner = username;
mode = "0600";
path = "${home}/.ssh/gitlab";
};
};
};
environment.systemPackages = with pkgs; [
sops
age
];
}