We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa4ed32 commit 5695116Copy full SHA for 5695116
1 file changed
programs/sops.nix
@@ -1,13 +1,16 @@
1
-{ config, pkgs, ... }:
+{ config, pkgs, lib, ... }:
2
3
{
4
home.packages = [ pkgs.sops ];
5
6
sops = {
7
age.keyFile = "${config.home.homeDirectory}/.config/sops/age/keys.txt";
8
-
9
age.sshKeyPaths = [ "${config.home.homeDirectory}/.ssh/id_ed25519" ];
10
+ defaultSecretsMountPoint = if pkgs.stdenv.hostPlatform.isAndroid
11
+ then "${config.home.homeDirectory}/.config/sops-nix/secrets.d"
12
+ else "/run/user/1000/secrets.d";
13
+
14
defaultSopsFile = ../secrets/secrets.yaml;
15
16
# Every input is avaiable in 'config.sops.secrets.<nome>'.
0 commit comments