2023-09-10 22:46:34 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
sops
|
|
|
|
];
|
|
|
|
|
|
|
|
sops = {
|
|
|
|
# Add secrets.yml to the nix store
|
|
|
|
defaultSopsFile = ../../../secrets/secrets.yaml;
|
|
|
|
age = {
|
|
|
|
# Automatically import SSH keys as age keys
|
|
|
|
sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
|
|
|
|
# Use an age key that is expected to already be in the filesystem
|
|
|
|
keyFile = "/var/lib/sops-nix/key.txt";
|
|
|
|
# Generate new keys if the key specified above does not exist
|
2023-09-11 12:49:47 +02:00
|
|
|
# generateKey = true;
|
2023-09-10 22:46:34 +02:00
|
|
|
};
|
2023-09-21 16:53:34 +02:00
|
|
|
secrets =
|
|
|
|
let
|
|
|
|
user = config.users.users.tdpeuter.name;
|
|
|
|
in {
|
2023-09-11 12:49:47 +02:00
|
|
|
"GitHub/ssh" = {
|
|
|
|
format = "yaml";
|
|
|
|
sopsFile = ../../../secrets/GitHub.yaml;
|
2023-09-21 16:53:34 +02:00
|
|
|
owner = user;
|
2023-09-11 12:49:47 +02:00
|
|
|
};
|
2023-09-11 13:28:41 +02:00
|
|
|
"GitHub-UGent/ssh" = {
|
|
|
|
format = "yaml";
|
|
|
|
sopsFile = ../../../secrets/GitHub-UGent.yaml;
|
2023-09-21 16:53:34 +02:00
|
|
|
owner = user;
|
|
|
|
};
|
|
|
|
"H4G0/ssh" = {
|
|
|
|
format = "yaml";
|
|
|
|
sopsFile = ../../../secrets/H4G0.yaml;
|
|
|
|
owner = user;
|
|
|
|
};
|
|
|
|
"H4Git/ssh" = {
|
|
|
|
format = "yaml";
|
|
|
|
sopsFile = ../../../secrets/H4Git.yaml;
|
|
|
|
owner = user;
|
2023-09-11 13:28:41 +02:00
|
|
|
};
|
2023-09-10 22:46:34 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|