summaryrefslogtreecommitdiff
path: root/users
diff options
context:
space:
mode:
authorLeonardo Santiago <[email protected]>2024-06-05 20:24:31 -0300
committerLeonardo Santiago <[email protected]>2024-06-05 20:24:31 -0300
commit484481ae89ca55c2aebefbd4bed29cd981fe0b90 (patch)
tree065089dc409becef2e69ed3f6d132876254fcc93 /users
parentf2c7a26d2c2f9b1be8b156fe91cbb80e998b9281 (diff)
rekey files to use new sshkey
Diffstat (limited to 'users')
-rw-r--r--users/leonardo.nix34
1 files changed, 18 insertions, 16 deletions
diff --git a/users/leonardo.nix b/users/leonardo.nix
index 0115f30..91a80bf 100644
--- a/users/leonardo.nix
+++ b/users/leonardo.nix
@@ -114,20 +114,22 @@ in
openssh.authorizedKeys.keys = builtins.attrValues (hosts-pub-keys);
};
- age.secrets = {
- user-ssh-key = {
- file = ../secrets/user-ssh-key.age;
- path = "/home/leonardo/.ssh/user-ssh-key";
- owner = "leonardo";
- group = "users";
- };
- } // (builtins.foldl' (acc: filename: acc // {
- ${filename} = {
- file = ../secrets/${filename}.age;
- owner = "leonardo";
- group = "users";
- };
- }) {} [ "personal-mail" "work-mail" "university-mail" "authinfo" "user-pass" ]);
+ age = {
+ secrets = {
+ user-ssh-key = {
+ file = ../secrets/user-ssh-key.age;
+ path = "/home/leonardo/.ssh/id_ed25519";
+ owner = "leonardo";
+ group = "users";
+ };
+ } // (builtins.foldl' (acc: filename: acc // {
+ ${filename} = {
+ file = ../secrets/${filename}.age;
+ owner = "leonardo";
+ group = "users";
+ };
+ }) {} [ "personal-mail" "work-mail" "university-mail" "authinfo" "user-pass" ]);
+ };
services.gnome.gnome-browser-connector.enable = true;
home-manager = {
backupFileExtension = "backup";
@@ -136,7 +138,7 @@ in
users.leonardo = { pkgs, ... } : {
imports = [ ./../modules/gnome-config.nix ];
home = {
- file.".ssh/user-ssh-key.pub".source = ../secrets/user-ssh-key.pub;
+ file.".ssh/id_ed25519.pub".source = ../secrets/user-ssh-key.pub;
file.".mozilla/firefox/leonardo/chrome/firefox-gnome-theme".source = inputs.firefox-gnome-theme;
username = "leonardo";
homeDirectory = "/home/leonardo";
@@ -222,7 +224,7 @@ in
user = {
name = "Leonardo Santiago";
email = "[email protected]";
- signingkey = "~/.ssh/user-ssh-key";
+ signingkey = "~/.ssh/id_ed25519";
};
color.ui = true;
gpg.format = "ssh";