system: Use system nixpkgs in nix module
This commit is contained in:
parent
baa973b5c7
commit
43f04499ba
@ -1,4 +1,4 @@
|
|||||||
{ pkgs, lib, config, options, inputs, ... }:
|
{ pkgs, lib, config, options, inputs, nixpkgs, ... }:
|
||||||
let
|
let
|
||||||
cfg = config.nixfiles.common.nix;
|
cfg = config.nixfiles.common.nix;
|
||||||
in
|
in
|
||||||
@ -39,7 +39,7 @@ in
|
|||||||
type = "github";
|
type = "github";
|
||||||
owner = "NixOS";
|
owner = "NixOS";
|
||||||
repo = "nixpkgs";
|
repo = "nixpkgs";
|
||||||
rev = "${inputs.nixpkgs.rev}";
|
rev = "${nixpkgs.rev}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@ -48,7 +48,7 @@ in
|
|||||||
# compatibility becasue once `, vkcube` couldn't find the correct opengl
|
# compatibility becasue once `, vkcube` couldn't find the correct opengl
|
||||||
# driver or something (also it reduces the download size of temporary shell
|
# driver or something (also it reduces the download size of temporary shell
|
||||||
# closures)
|
# closures)
|
||||||
nix.nixPath = [ "nixpkgs=${inputs.nixpkgs}" ] ++ options.nix.nixPath.default;
|
nix.nixPath = [ "nixpkgs=${nixpkgs}" ] ++ options.nix.nixPath.default;
|
||||||
})
|
})
|
||||||
( lib.mkIf cfg.enable {
|
( lib.mkIf cfg.enable {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user