File tree 4 files changed +26
-0
lines changed 4 files changed +26
-0
lines changed Original file line number Diff line number Diff line change 61
61
;
62
62
# backward compatibility
63
63
inherit ( prev ) ssh-to-pgp ;
64
+
65
+ sops = prev . sops . withAgePlugins ( p : [
66
+ p . age-plugin-fido2-hmac
67
+ ] ) ;
64
68
} ;
65
69
nixosModules = {
66
70
sops = ./modules/sops ;
Original file line number Diff line number Diff line change 240
240
'' ;
241
241
} ;
242
242
243
+ plugins = lib . mkOption {
244
+ type = lib . types . listOf lib . types . package ;
245
+ default = [ ] ;
246
+ description = ''
247
+ List of plugins to use for sops decryption.
248
+ '' ;
249
+ } ;
250
+
243
251
generateKey = lib . mkOption {
244
252
type = lib . types . bool ;
245
253
default = false ;
339
347
) )
340
348
] ;
341
349
350
+ PATH = lib . makeBinPath cfg . age . plugins ;
351
+
342
352
QUBES_GPG_DOMAIN = lib . mkIf cfg . gnupg . qubes-split-gpg . enable (
343
353
lib . mkDefault cfg . gnupg . qubes-split-gpg . domain
344
354
) ;
Original file line number Diff line number Diff line change 43
43
# [1] https://github.com/getsops/sops/pull/1692
44
44
cfg = lib . recursiveUpdate cfg {
45
45
environment . HOME = "/var/empty" ;
46
+ environment . PATH = lib . makeBinPath cfg . age . plugins ;
46
47
} ;
47
48
inherit lib ;
48
49
} ;
329
330
'' ;
330
331
} ;
331
332
333
+ plugins = lib . mkOption {
334
+ type = lib . types . listOf lib . types . package ;
335
+ default = [ ] ;
336
+ description = ''
337
+ List of plugins to use for sops decryption.
338
+ '' ;
339
+ } ;
340
+
332
341
generateKey = lib . mkOption {
333
342
type = lib . types . bool ;
334
343
default = false ;
438
447
after = [ "systemd-sysusers.service" ] ;
439
448
environment = cfg . environment ;
440
449
unitConfig . DefaultDependencies = "no" ;
450
+ path = cfg . age . plugins ;
441
451
442
452
serviceConfig = {
443
453
Type = "oneshot" ;
Original file line number Diff line number Diff line change 17
17
# See also the default NixOS module.
18
18
cfg = lib . recursiveUpdate cfg {
19
19
environment . HOME = "/var/empty" ;
20
+ environment . PATH = lib . makeBinPath cfg . age . plugins ;
20
21
} ;
21
22
inherit lib ;
22
23
} ;
36
37
before = [ "systemd-sysusers.service" ] ;
37
38
environment = cfg . environment ;
38
39
unitConfig . DefaultDependencies = "no" ;
40
+ path = cfg . age . plugins ;
39
41
40
42
serviceConfig = {
41
43
Type = "oneshot" ;
You can’t perform that action at this time.
0 commit comments