diff --git a/flake.nix b/flake.nix index 8a31d0d..8cb8f61 100644 --- a/flake.nix +++ b/flake.nix @@ -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 ( diff --git a/lib/home.nix b/lib/home.nix new file mode 100644 index 0000000..56ae511 --- /dev/null +++ b/lib/home.nix @@ -0,0 +1,2 @@ +# https://github.com/hercules-ci/gitignore.nix/pull/58/files +path: ~/. + path