File tree Expand file tree Collapse file tree 4 files changed +25
-0
lines changed Expand file tree Collapse file tree 4 files changed +25
-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 329
329
'' ;
330
330
} ;
331
331
332
+ plugins = lib . mkOption {
333
+ type = lib . types . listOf lib . types . package ;
334
+ default = [ ] ;
335
+ description = ''
336
+ List of plugins to use for sops decryption.
337
+ '' ;
338
+ } ;
339
+
332
340
generateKey = lib . mkOption {
333
341
type = lib . types . bool ;
334
342
default = false ;
438
446
after = [ "systemd-sysusers.service" ] ;
439
447
environment = cfg . environment ;
440
448
unitConfig . DefaultDependencies = "no" ;
449
+ path = cfg . age . plugins ;
441
450
442
451
serviceConfig = {
443
452
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