Move secrets to machine config and improve fsaccount mirroring

This commit is contained in:
Gonne 2024-04-02 09:04:34 +02:00
parent 326cc52c2e
commit 72610eb2bf
2 changed files with 9 additions and 8 deletions

View file

@ -1,4 +1,4 @@
{
{config, ...}: {
imports = [
./hardware-configuration.nix
../../roles
@ -12,4 +12,11 @@
# System configuration here
networking.hostName = "bragi";
system.stateVersion = "23.11";
sops.secrets.backupKey = {
sopsFile = ./backupKey.yaml;
owner = config.users.users.fsaccount.name;
inherit (config.users.users.fsaccount) group;
mode = "0400";
};
}