1
0
Fork 0
mirror of https://github.com/Mic92/sops-nix.git synced 2025-04-08 09:54:35 +00:00

fix sops nixos module

This commit is contained in:
Jörg Thalheim 2020-07-12 17:48:37 +01:00
parent 1745bb9f95
commit 7bd84011ef
No known key found for this signature in database
GPG key ID: 003F2096411B5F92
2 changed files with 3 additions and 1 deletions
modules/sops
pkgs/sops-install-secrets

View file

@ -5,7 +5,7 @@ with lib;
let
cfg = config.sops;
users = config.users.users;
sops-install-secrets = pkgs.callPackage ../../pkgs/sops-install-secrets {};
sops-install-secrets = (pkgs.callPackage ../.. {}).sops-install-secrets;
secretType = types.submodule ({ config, ... }: {
options = {
name = mkOption {

View file

@ -1,6 +1,7 @@
{ makeTest ? import <nixpkgs/nixos/tests/make-test-python.nix>, pkgs ? import <nixpkgs> }:
{
ssh-keys = makeTest {
name = "sops-ssh-keys";
nodes.server = { ... }: {
imports = [ ../../modules/sops ];
services.openssh.enable = true;
@ -22,6 +23,7 @@
};
pgp-keys = makeTest {
name = "sops-pgp-keys";
nodes.server = { pkgs, lib, ... }: {
imports = [ ../../modules/sops ];
sops.gnupgHome = "/run/gpghome";