[m]Flake sops & format

This commit is contained in:
soraefir
2023-11-24 19:08:21 +01:00
parent b44e6d9e5b
commit 996c82d99f
4 changed files with 19 additions and 19 deletions

View File

@ -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;
}