[m]Flake sops & format
This commit is contained in:
@ -1,6 +1,8 @@
|
||||
{ config, pkgs, ... }: {
|
||||
{ config, pkgs, ... }:
|
||||
let keyFilePath = "/var/lib/sops-nix/age-key.txt";
|
||||
in {
|
||||
sops.defaultSopsFile = ./common.yaml;
|
||||
sops.age.keyFile = "/var/lib/sops-nix/age-key.txt";
|
||||
sops.age.keyFile = keyFilePath;
|
||||
sops.age.generateKey = true;
|
||||
|
||||
sops.secrets.wifi = { };
|
||||
@ -19,5 +21,6 @@
|
||||
sops.secrets."${config.hostcfg.hostname}_wg_pub" = { };
|
||||
|
||||
environment.systemPackages = with pkgs; [ sops ];
|
||||
environment.sessionVariables.OPS_AGE_KEY_FILE = keyFilePath;
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user