Create helper option for deploying sops keys
Update public key of sue-root because I lost the private key
This commit is contained in:
parent
544cf42357
commit
0812586942
8 changed files with 102 additions and 107 deletions
|
@ -1,15 +1,15 @@
|
|||
{
|
||||
self,
|
||||
pkgs,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
sops = lib.getExe pkgs.sops;
|
||||
in {
|
||||
}: {
|
||||
config = {
|
||||
pim = {
|
||||
cinnamon.enable = true;
|
||||
sopsKeys = {
|
||||
root = ./nixos.sops.yaml;
|
||||
pim = ./pim.sops.yaml;
|
||||
};
|
||||
};
|
||||
|
||||
facter.reportPath = ./facter.json;
|
||||
|
@ -30,22 +30,6 @@ in {
|
|||
targetHost = "gamepc";
|
||||
targetUser = "root";
|
||||
tags = ["desktop"];
|
||||
|
||||
keys = {
|
||||
root-sops-age-key = {
|
||||
keyCommand = ["sudo" sops "--extract" "[\"sops_age_key\"]" "-d" "${self}/machines/gamepc/nixos.sops.yaml"];
|
||||
name = "keys.txt";
|
||||
destDir = "/root/.config/sops/age";
|
||||
};
|
||||
|
||||
pim-sops-age-key = {
|
||||
keyCommand = [sops "--extract" "[\"sops_age_key\"]" "-d" "${self}/machines/gamepc/pim.sops.yaml"];
|
||||
name = "keys.txt";
|
||||
destDir = "/home/pim/.config/sops/age";
|
||||
user = "pim";
|
||||
group = "users";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
services = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue