You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/home-manager/sops.nix
+15-1Lines changed: 15 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -98,6 +98,7 @@ let
98
98
gnupgHome=cfg.gnupg.home;
99
99
sshKeyPaths=cfg.gnupg.sshKeyPaths;
100
100
ageKeyFile=cfg.age.keyFile;
101
+
ageSshKeyFile=cfg.age.sshKeyFile;
101
102
ageSshKeyPaths=cfg.age.sshKeyPaths;
102
103
placeholderBySecretName=cfg.placeholder;
103
104
userMode=true;
@@ -250,11 +251,23 @@ in
250
251
'';
251
252
};
252
253
254
+
sshKeyFile=lib.mkOption{
255
+
type=lib.types.nullOrpathNotInStore;
256
+
default=null;
257
+
example="/home/someuser/.ssh/id_ed25519";
258
+
description=''
259
+
Path to ssh key file that will be used by age for sops decryption.
260
+
'';
261
+
};
262
+
253
263
sshKeyPaths=lib.mkOption{
254
264
type=lib.types.listOflib.types.path;
255
265
default=[];
256
266
description=''
257
-
Paths to ssh keys added as age keys during sops description.
267
+
Paths to ssh keys added as age keys during sops description. The ssh
268
+
keys will be converted into age keys manually using ssh-to-age.
269
+
270
+
This option is deprecated and will be removed in the future. Use sops.age.sshKeyFile instead.
258
271
'';
259
272
};
260
273
};
@@ -301,6 +314,7 @@ in
301
314
||cfg.gnupg.sshKeyPaths!=[]
302
315
||cfg.gnupg.qubes-split-gpg.enable==true
303
316
||cfg.age.keyFile!=null
317
+
||cfg.age.sshKeyFile!=null
304
318
||cfg.age.sshKeyPaths!=[];
305
319
message="No key source configured for sops. Either set services.openssh.enable or set sops.age.keyFile or sops.gnupg.home or sops.gnupg.qubes-split-gpg.enable";
0 commit comments