Add nix module to preserve system flake in generations
This commit is contained in:
parent
45ab2f83aa
commit
96ed6c4c63
2 changed files with 9 additions and 1 deletions
7
modules/preserve-system.nix
Normal file
7
modules/preserve-system.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
# preserve the flake that built the current system generation
|
||||
|
||||
{ inputs, ... }: let
|
||||
inherit (inputs) self;
|
||||
in {
|
||||
environment.etc."current-flake".source = self;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue