Compare commits

..

No commits in common. "2861f939b77249bbbad633561ef55d96fa79cfaa" and "4e81647fb6d366a5787a4b8f1bdaea4baede24ed" have entirely different histories.

1 changed files with 2 additions and 13 deletions

View File

@ -1,4 +1,4 @@
{ inputs, pkgs, lib, ... }:
{ ... }:
{
system.autoUpgrade = {
enable = true;
@ -12,15 +12,4 @@
"--no-write-lock-file"
];
};
# workaround for https://github.com/NixOS/nix/issues/6895
# via https://git.lix.systems/lix-project/lix/issues/400
environment.etc."current-system-flake-inputs.json".source
= pkgs.writers.writeJSON "flake-inputs.json" (
lib.flip lib.mapAttrs inputs (name: input:
# inputs.*.sourceInfo sans outPath, since writeJSON will otherwise serialize sourceInfo like a derivation
lib.removeAttrs (input.sourceInfo or {}) [ "outPath" ]
// { store-path = input.outPath; } # comment this line if you don't want to retain a store reference to the flake inputs
)
);
}
}