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:
@@ -84,6 +84,10 @@
|
|||||||
} @ inputs: let
|
} @ inputs: let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
pkgs = nixos-stable.legacyPackages.${system};
|
pkgs = nixos-stable.legacyPackages.${system};
|
||||||
|
home =
|
||||||
|
if nixos-stable.lib.inPureEvalMode or false
|
||||||
|
then _: /nonexistent
|
||||||
|
else import lib/home.nix;
|
||||||
source = {
|
source = {
|
||||||
sources,
|
sources,
|
||||||
unstable,
|
unstable,
|
||||||
@@ -93,11 +97,11 @@
|
|||||||
niveum.file = toString ./.;
|
niveum.file = toString ./.;
|
||||||
nixos-config.symlink = "niveum/systems/${name}/configuration.nix";
|
nixos-config.symlink = "niveum/systems/${name}/configuration.nix";
|
||||||
system-secrets.pass = {
|
system-secrets.pass = {
|
||||||
dir = toString ~/.password-store;
|
dir = toString (home /.password-store);
|
||||||
name = "systems/${name}";
|
name = "systems/${name}";
|
||||||
};
|
};
|
||||||
secrets.pass = {
|
secrets.pass = {
|
||||||
dir = toString ~/.password-store;
|
dir = toString (home /.password-store);
|
||||||
name = "shared";
|
name = "shared";
|
||||||
};
|
};
|
||||||
nixpkgs.file = toString (
|
nixpkgs.file = toString (
|
||||||
|
|||||||
2
lib/home.nix
Normal file
2
lib/home.nix
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
# https://github.com/hercules-ci/gitignore.nix/pull/58/files
|
||||||
|
path: ~/. + path
|
||||||
Reference in New Issue
Block a user