Automatically set root user's sops key file

This commit is contained in:
Pim Kunis 2024-12-01 17:06:43 +01:00
parent a4b8cd941d
commit d5978e4d47
6 changed files with 3 additions and 16 deletions

View file

@ -1,11 +1,8 @@
{config, ...}: {
config = {
facter.reportPath = ./facter.json;
# TODO: should set this automatically
system.stateVersion = "23.05";
users.users.root.openssh.authorizedKeys.keys = config.pim.ssh.keys.pim ++ config.pim.ssh.keys.niels;
# TODO: set this as a default?
sops.age.keyFile = "/root/.config/sops/age/keys.txt";
deployment = {
targetHost = "atlas";