add work's conf

Signed-off-by: Hadi <hadi@example.com>
This commit is contained in:
Hadi
2026-08-17 10:49:37 +02:00
parent a7684e2ee4
commit a4b07fa578
11 changed files with 377 additions and 0 deletions
+38
View File
@@ -0,0 +1,38 @@
# 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;
path = "${home}/.ssh/config";
};
netrc = {
owner = username;
path = "${home}/.netrc";
};
ssh-github-key = {
owner = username;
path = "${home}/.ssh/github";
};
ssh-gitlab-key = {
owner = username;
path = "${home}/.ssh/gitlab";
};
};
};
environment.systemPackages = with pkgs; [
sops
age
];
}