feat: Add nixpkgs-patcher for patch nixpkgs
This commit is contained in:
parent
415e9862b6
commit
a31f6cdcee
6 changed files with 85 additions and 54 deletions
|
|
@ -14,7 +14,8 @@ in {
|
|||
};
|
||||
nixosConfigurations = let
|
||||
makeNixosConfiguration = hostName:
|
||||
lib.nixosSystem {
|
||||
lib.nixpkgs-patcher.nixosSystem {
|
||||
nixpkgsPatcher.inputs = inputs;
|
||||
modules = [(rootPath + "/nixos/configurations/${hostName}")];
|
||||
specialArgs = {
|
||||
inherit
|
||||
|
|
|
|||
|
|
@ -14,9 +14,11 @@
|
|||
inputs',
|
||||
...
|
||||
}: let
|
||||
inherit (inputs) nixpkgs;
|
||||
patchedNixpkgs = lib.nixpkgs-patcher.patchNixpkgs {
|
||||
inherit system inputs;
|
||||
};
|
||||
in {
|
||||
_module.args.pkgs = import nixpkgs {
|
||||
_module.args.pkgs = import patchedNixpkgs {
|
||||
localSystem = {inherit system;};
|
||||
config = {
|
||||
allowUnfree = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue