mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-08-21 10:45:49 +02:00
@@ -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
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user