1
0
Fork 0
mirror of https://github.com/Mic92/sops-nix.git synced 2024-12-14 11:57:52 +00:00

fix eval of tests (#674)

This commit is contained in:
Jörg Thalheim 2024-11-17 17:51:52 +01:00 committed by GitHub
parent 0ec0d5d3c5
commit 472741cf3f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View file

@ -588,7 +588,7 @@ in
# must run before sops sets up keys # must run before sops sets up keys
systemd.services."sops-install-secrets-for-users".preStart = '' systemd.services."sops-install-secrets-for-users".preStart = ''
printf '${builtins.readFile testAssets + "/age-keys.txt"}' > /run/age-keys.txt printf '${builtins.readFile (testAssets + "/age-keys.txt")}' > /run/age-keys.txt
chmod -R 700 /run/age-keys.txt chmod -R 700 /run/age-keys.txt
''; '';
} }

View file

@ -93,12 +93,12 @@
nixpkgs.lib.mapAttrs' (name: value: nixpkgs.lib.nameValuePair (name + version) value) attrs; nixpkgs.lib.mapAttrs' (name: value: nixpkgs.lib.nameValuePair (name + version) value) attrs;
suffix-stable = suffix-version "-24_05"; suffix-stable = suffix-version "-24_05";
in in
tests {
// (suffix-stable tests-stable)
// (suffix-stable packages-stable)
// {
home-manager = self.legacyPackages.${system}.homeConfigurations.sops.activation-script; home-manager = self.legacyPackages.${system}.homeConfigurations.sops.activation-script;
} }
// (suffix-stable packages-stable)
// nixpkgs.lib.optionalAttrs pkgs.stdenv.isLinux tests
// nixpkgs.lib.optionalAttrs pkgs.stdenv.isLinux (suffix-stable tests-stable)
// nixpkgs.lib.optionalAttrs pkgs.stdenv.isDarwin { // nixpkgs.lib.optionalAttrs pkgs.stdenv.isDarwin {
darwin-sops = darwin-sops =
self.darwinConfigurations."sops-${pkgs.hostPlatform.darwinArch}".config.system.build.toplevel; self.darwinConfigurations."sops-${pkgs.hostPlatform.darwinArch}".config.system.build.toplevel;