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 249249 '' ;
250250 } ;
251251
252+ plugins = lib . mkOption {
253+ type = lib . types . listOf lib . types . package ;
254+ default = [ ] ;
255+ description = ''
256+ List of plugins to use for sops decryption.
257+ '' ;
258+ } ;
259+
252260 generateKey = lib . mkOption {
253261 type = lib . types . bool ;
254262 default = false ;
348356 ) )
349357 ] ;
350358
359+ PATH = lib . makeBinPath cfg . age . plugins ;
360+
351361 QUBES_GPG_DOMAIN = lib . mkIf cfg . gnupg . qubes-split-gpg . enable (
352362 lib . mkDefault cfg . gnupg . qubes-split-gpg . domain
353363 ) ;
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