Skip to content

Commit

Permalink
improved syntax in sops.nix and renamed secret yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
fschn90 committed Apr 11, 2024
1 parent b405f76 commit f8d8f8c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions modules/sops.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

sops = {

defaultSopsFile = ../secrets/example.yaml;
defaultSopsFile = ../secrets/main.yaml;
defaultSopsFormat = "yaml";

age.keyFile = "/var/lib/sops-nix/key.txt";
Expand All @@ -15,40 +15,39 @@
secrets."ssh/config" = {
mode = "0644";
path = "/home/fschn/.ssh/config";
owner = "fschn";
owner = config.users.users.fschn.name;
};

secrets."ssh/authorized_keys" = {
mode = "0600";
path = "/home/fschn/.ssh/authorized_keys";
owner = "fschn";
owner = config.users.users.fschn.name;
};

secrets."ssh/keys/hetzner_flo" = {
mode = "0600";
path = "/home/fschn/.ssh/hetzner_flo";
owner = "fschn";
owner = config.users.users.fschn.name;
};

secrets."ssh/keys/hetzner_flo.pub" = {
mode = "0644";
path = "/home/fschn/.ssh/hetzner_flo.pub";
owner = "fschn";
owner = config.users.users.fschn.name;
};

secrets."ssh/keys/id_ed25519" = {
mode = "0600";
path = "/home/fschn/.ssh/id_ed25519";
owner = "fschn";
owner = config.users.users.fschn.name;
};

secrets."ssh/keys/id_ed25519.pub" = {
mode = "0644";
path = "/home/fschn/.ssh/id_ed25519.pub";
owner = "fschn";
owner = config.users.users.fschn.name;
};

secrets."myservice/my_subdir/my_secret" = {};
secrets."Users/fschn/Password".neededForUsers = true;
};
}
File renamed without changes.

0 comments on commit f8d8f8c

Please sign in to comment.