mirror of
https://github.com/Mic92/sops-nix.git
synced 2025-03-30 20:04:35 +00:00
switch to 22.11 for testing
This commit is contained in:
parent
da1f173f47
commit
2e8dc91c02
1 changed files with 8 additions and 8 deletions
16
flake.nix
16
flake.nix
|
@ -1,13 +1,13 @@
|
|||
{
|
||||
description = "Integrates sops into nixos";
|
||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||
inputs.nixpkgs-22_05.url = "github:NixOS/nixpkgs/release-22.05";
|
||||
inputs.nixpkgs-stable.url = "github:NixOS/nixpkgs/release-22.11";
|
||||
nixConfig.extra-substituters = ["https://cache.garnix.io"];
|
||||
nixConfig.extra-trusted-public-keys = ["cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="];
|
||||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
nixpkgs-22_05
|
||||
nixpkgs-stable
|
||||
}: let
|
||||
systems = [
|
||||
"x86_64-linux"
|
||||
|
@ -17,7 +17,7 @@
|
|||
];
|
||||
forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f system);
|
||||
suffix-version = version: attrs: nixpkgs.lib.mapAttrs' (name: value: nixpkgs.lib.nameValuePair (name + version) value) attrs;
|
||||
suffix-22_05 = suffix-version "-22_05";
|
||||
suffix-stable = suffix-version "-22_11";
|
||||
in {
|
||||
overlay = final: prev: let
|
||||
localPkgs = import ./default.nix {pkgs = final;};
|
||||
|
@ -35,13 +35,13 @@
|
|||
checks = nixpkgs.lib.genAttrs ["x86_64-linux" "aarch64-linux"]
|
||||
(system: let
|
||||
tests = self.packages.${system}.sops-install-secrets.tests;
|
||||
packages-22_05 = import ./default.nix {
|
||||
pkgs = import nixpkgs-22_05 {inherit system;};
|
||||
packages-stable = import ./default.nix {
|
||||
pkgs = import nixpkgs-stable {inherit system;};
|
||||
};
|
||||
tests-22_05 = packages-22_05.sops-install-secrets.tests;
|
||||
tests-stable = packages-stable.sops-install-secrets.tests;
|
||||
in tests //
|
||||
(suffix-22_05 tests-22_05) //
|
||||
(suffix-22_05 packages-22_05));
|
||||
(suffix-stable tests-stable) //
|
||||
(suffix-stable packages-stable));
|
||||
|
||||
defaultPackage = forAllSystems (system: self.packages.${system}.sops-init-gpg-key);
|
||||
devShell = forAllSystems (
|
||||
|
|
Loading…
Add table
Reference in a new issue