Skip to content

Commit b692e0e

Browse files
committed
don't copy nixpkgs to store when evaluating nixos.nix demo
1 parent d47f5d0 commit b692e0e

2 files changed

Lines changed: 10 additions & 18 deletions

File tree

default.nix

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ let
1717
in
1818
{
1919
system ? builtins.currentSystem,
20-
pkgs ? import inputs.nixpkgs {
21-
inherit system;
22-
overlays = [ (import ./pkgs) ];
23-
},
2420
}:
2521
rec {
26-
inherit inputs pkgs;
22+
pkgs = import inputs.nixpkgs {
23+
inherit system;
24+
overlays = [ (import ./pkgs) ];
25+
};
26+
inherit inputs;
2727
lib = pkgs.lib;
2828

2929
easykubenix = import inputs.easykubenix;

demo/nixos.nix

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,10 @@
11
# SPDX-License-Identifier: MIT
2-
3-
{
4-
pkgs ? import <nixpkgs> { },
5-
}:
62
let
7-
lib = pkgs.lib;
8-
# You can use flakes, npins, niv, fetchTree, fetchFromGitHub or whatever.
9-
easykubenix = builtins.fetchTree {
10-
type = "github";
11-
owner = "lillecarl";
12-
repo = "easykubenix";
13-
};
3+
default = import ../. { };
4+
inherit (default) pkgs easykubenix;
5+
inherit (pkgs) lib;
146

15-
nixos = import "${pkgs.path}/nixos/lib/eval-config.nix" {
7+
nixos = import (pkgs.path + "/nixos/lib/eval-config.nix") {
168
inherit pkgs;
179
modules = [
1810
(
@@ -36,7 +28,7 @@ let
3628
];
3729
};
3830

39-
ekn = import easykubenix {
31+
ekn = easykubenix {
4032
inherit pkgs;
4133
modules = [
4234
(

0 commit comments

Comments
 (0)