nixnew/modules/preserve-system.nix

8 lines
165 B
Nix
Raw Normal View History

# preserve the flake that built the current system generation
{ inputs, ... }: let
inherit (inputs) self;
in {
environment.etc."current-flake".source = self;
}