File tree Expand file tree Collapse file tree 4 files changed +26
-0
lines changed
Expand file tree Collapse file tree 4 files changed +26
-0
lines changed Original file line number Diff line number Diff line change 6161 ;
6262 # backward compatibility
6363 inherit ( prev ) ssh-to-pgp ;
64+
65+ sops = prev . sops . withAgePlugins ( p : [
66+ p . age-plugin-fido2-hmac
67+ ] ) ;
6468 } ;
6569 nixosModules = {
6670 sops = ./modules/sops ;
Original file line number Diff line number Diff line change 240240 '' ;
241241 } ;
242242
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+
243251 generateKey = lib . mkOption {
244252 type = lib . types . bool ;
245253 default = false ;
339347 ) )
340348 ] ;
341349
350+ PATH = lib . makeBinPath cfg . age . plugins ;
351+
342352 QUBES_GPG_DOMAIN = lib . mkIf cfg . gnupg . qubes-split-gpg . enable (
343353 lib . mkDefault cfg . gnupg . qubes-split-gpg . domain
344354 ) ;
Original file line number Diff line number Diff line change 4343 # [1] https://github.com/getsops/sops/pull/1692
4444 cfg = lib . recursiveUpdate cfg {
4545 environment . HOME = "/var/empty" ;
46+ environment . PATH = lib . makeBinPath cfg . age . plugins ;
4647 } ;
4748 inherit lib ;
4849 } ;
329330 '' ;
330331 } ;
331332
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+
332341 generateKey = lib . mkOption {
333342 type = lib . types . bool ;
334343 default = false ;
438447 after = [ "systemd-sysusers.service" ] ;
439448 environment = cfg . environment ;
440449 unitConfig . DefaultDependencies = "no" ;
450+ path = cfg . age . plugins ;
441451
442452 serviceConfig = {
443453 Type = "oneshot" ;
Original file line number Diff line number Diff line change 1717 # See also the default NixOS module.
1818 cfg = lib . recursiveUpdate cfg {
1919 environment . HOME = "/var/empty" ;
20+ environment . PATH = lib . makeBinPath cfg . age . plugins ;
2021 } ;
2122 inherit lib ;
2223 } ;
3637 before = [ "systemd-sysusers.service" ] ;
3738 environment = cfg . environment ;
3839 unitConfig . DefaultDependencies = "no" ;
40+ path = cfg . age . plugins ;
3941
4042 serviceConfig = {
4143 Type = "oneshot" ;
You can’t perform that action at this time.
0 commit comments