mirror of
https://github.com/Mic92/sops-nix.git
synced 2026-05-12 02:45:55 +08:00
update github action to also update private flake
This commit is contained in:
parent
7769727634
commit
5f3869dfd2
3 changed files with 27 additions and 12 deletions
15
flake.nix
15
flake.nix
|
|
@ -93,11 +93,24 @@
|
|||
tests // (suffix-stable tests-stable) // (suffix-stable packages-stable)
|
||||
);
|
||||
|
||||
apps = eachSystem (
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
update-dev-private-narHash = {
|
||||
type = "app";
|
||||
program = "${pkgs.writeShellScript "update-dev-private-narHash" ''
|
||||
nix --extra-experimental-features "nix-command flakes" flake lock ./dev/private
|
||||
nix --extra-experimental-features "nix-command flakes" hash path ./dev/private | tr -d '\n' > ./dev/private.narHash
|
||||
''}";
|
||||
};
|
||||
}
|
||||
);
|
||||
|
||||
devShells = eachSystem (
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
unit-tests = pkgs.callPackage ./pkgs/unit-tests.nix { };
|
||||
default = pkgs.callPackage ./shell.nix { };
|
||||
default = pkgs.callPackage ./shell.nix {};
|
||||
}
|
||||
);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue