refactor: nest sops options
This commit is contained in:
parent
023e0fded2
commit
08d5398b4f
2 changed files with 9 additions and 5 deletions
|
|
@ -3,6 +3,10 @@
|
||||||
user,
|
user,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
|
sops.secrets.restic_key = {
|
||||||
|
owner = config.users.users.${user}.name;
|
||||||
|
};
|
||||||
|
|
||||||
services.restic.backups = {
|
services.restic.backups = {
|
||||||
backups = {
|
backups = {
|
||||||
user = "${user}";
|
user = "${user}";
|
||||||
|
|
|
||||||
|
|
@ -53,11 +53,11 @@
|
||||||
initrd.luks.devices."luks-b13379b3-2025-4d55-a40a-c0f3ad8ec801".device = "/dev/disk/by-uuid/b13379b3-2025-4d55-a40a-c0f3ad8ec801";
|
initrd.luks.devices."luks-b13379b3-2025-4d55-a40a-c0f3ad8ec801".device = "/dev/disk/by-uuid/b13379b3-2025-4d55-a40a-c0f3ad8ec801";
|
||||||
};
|
};
|
||||||
|
|
||||||
sops.defaultSopsFile = ../../secrets/secrets.yaml;
|
# sops
|
||||||
sops.defaultSopsFormat = "yaml";
|
sops = {
|
||||||
sops.age.keyFile = "/home/${user}/.config/sops/age/keys.txt";
|
defaultSopsFile = ../../secrets/secrets.yaml;
|
||||||
sops.secrets.restic_key = {
|
defaultSopsFormat = "yaml";
|
||||||
owner = config.users.users.${user}.name;
|
age.keyFile = "/home/${user}/.config/sops/age/keys.txt";
|
||||||
};
|
};
|
||||||
|
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue