Allow to specify the used nixpkgs
for every host
This commit is contained in:
parent
359943bb4b
commit
c7a0a57352
1 changed files with 6 additions and 1 deletions
|
@ -26,6 +26,11 @@ in {
|
|||
type = lib.types.str;
|
||||
default = "x86_64-linux";
|
||||
};
|
||||
nixpkgs = lib.mkOption {
|
||||
description = "Used nixpkgs";
|
||||
type = lib.types.anything;
|
||||
default = inputs.nixpkgsUnstable;
|
||||
};
|
||||
vpn = {
|
||||
ip = lib.mkOption {
|
||||
description = "Wireguard VPN ip";
|
||||
|
@ -120,7 +125,7 @@ in {
|
|||
type = lib.types.functionTo (lib.types.functionTo lib.types.attrs); # TODO improve this type
|
||||
internal = true;
|
||||
default = hostname: config:
|
||||
inputs.nixpkgsUnstable.lib.nixosSystem {
|
||||
config.nixpkgs.lib.nixosSystem {
|
||||
inherit (config) system;
|
||||
modules =
|
||||
[
|
||||
|
|
Loading…
Add table
Reference in a new issue