1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

fix(ci): add support for pure evaluation mode

the errors were caused by https://github.com/NixOS/nix/pull/6698
fix taken from https://github.com/hercules-ci/gitignore.nix/pull/58/files
This commit is contained in:
2022-07-15 09:44:37 +02:00
parent 5c5a5609cf
commit 8e941f60ea
2 changed files with 8 additions and 2 deletions

View File

@@ -84,6 +84,10 @@
} @ inputs: let
system = "x86_64-linux";
pkgs = nixos-stable.legacyPackages.${system};
home =
if nixos-stable.lib.inPureEvalMode or false
then _: /nonexistent
else import lib/home.nix;
source = {
sources,
unstable,
@@ -93,11 +97,11 @@
niveum.file = toString ./.;
nixos-config.symlink = "niveum/systems/${name}/configuration.nix";
system-secrets.pass = {
dir = toString ~/.password-store;
dir = toString (home /.password-store);
name = "systems/${name}";
};
secrets.pass = {
dir = toString ~/.password-store;
dir = toString (home /.password-store);
name = "shared";
};
nixpkgs.file = toString (

2
lib/home.nix Normal file
View File

@@ -0,0 +1,2 @@
# https://github.com/hercules-ci/gitignore.nix/pull/58/files
path: ~/. + path