Skip to content

Commit 29ed34b

Browse files
antifuchsMic92
authored andcommitted
Extract the interpolate function into lib.nix
This allows usage of interpolate inside master.nix, without duplicating code.
1 parent 1d0161f commit 29ed34b

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

flake.nix

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,7 @@
7676
in
7777
examplesFor "x86_64-linux" // examplesFor "aarch64-linux";
7878

79-
lib = {
80-
interpolate = value: {
81-
_type = "interpolate";
82-
inherit value;
83-
};
84-
};
79+
lib = import ./nix/lib.nix;
8580
};
8681
perSystem =
8782
{

nix/lib.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
interpolate = value: {
3+
_type = "interpolate";
4+
inherit value;
5+
};
6+
}

0 commit comments

Comments
 (0)