1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-11 07:10:39 +02:00

feat: add repo-like user secrets, rudimentary config of thunderbird

This commit is contained in:
oddlama 2023-09-16 14:04:02 +02:00
parent 0994bba279
commit 926787528b
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
10 changed files with 115 additions and 3 deletions

View file

@ -17,11 +17,16 @@ in {
shell = pkgs.zsh;
};
# Needed for gtk
programs.dconf.enable = true;
repo.secretFiles.user-myuser = ./secrets/user.nix.age;
age.secrets.my-gpg-pubkey-yubikey = {
rekeyFile = ./yubikey.gpg.age;
rekeyFile = ./secrets/yubikey.gpg.age;
group = myuser;
mode = "640";
};
age.secrets.mailpw-206fd3b8 = {
rekeyFile = ./secrets/mailpw-206fd3b8.age;
group = myuser;
mode = "640";
};
@ -38,6 +43,9 @@ in {
./ssh.nix
];
# Remove dependence on username (which also comes from these secrets) to
# avoid triggering infinite recursion.
userSecretsName = "user-myuser";
home = {
inherit (config.users.users.${myuser}) uid;
username = config.users.users.${myuser}.name;