Skip to content

Commit 5695116

Browse files
committed
fix(sops): set defaultSecretsMountPoint conditionally for Android platform
1 parent fa4ed32 commit 5695116

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

programs/sops.nix

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
1-
{ config, pkgs, ... }:
1+
{ config, pkgs, lib, ... }:
22

33
{
44
home.packages = [ pkgs.sops ];
55

66
sops = {
77
age.keyFile = "${config.home.homeDirectory}/.config/sops/age/keys.txt";
8-
98
age.sshKeyPaths = [ "${config.home.homeDirectory}/.ssh/id_ed25519" ];
109

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+
1114
defaultSopsFile = ../secrets/secrets.yaml;
1215

1316
# Every input is avaiable in 'config.sops.secrets.<nome>'.

0 commit comments

Comments
 (0)