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;
|
type = lib.types.str;
|
||||||
default = "x86_64-linux";
|
default = "x86_64-linux";
|
||||||
};
|
};
|
||||||
|
nixpkgs = lib.mkOption {
|
||||||
|
description = "Used nixpkgs";
|
||||||
|
type = lib.types.anything;
|
||||||
|
default = inputs.nixpkgsUnstable;
|
||||||
|
};
|
||||||
vpn = {
|
vpn = {
|
||||||
ip = lib.mkOption {
|
ip = lib.mkOption {
|
||||||
description = "Wireguard VPN ip";
|
description = "Wireguard VPN ip";
|
||||||
|
@ -120,7 +125,7 @@ in {
|
||||||
type = lib.types.functionTo (lib.types.functionTo lib.types.attrs); # TODO improve this type
|
type = lib.types.functionTo (lib.types.functionTo lib.types.attrs); # TODO improve this type
|
||||||
internal = true;
|
internal = true;
|
||||||
default = hostname: config:
|
default = hostname: config:
|
||||||
inputs.nixpkgsUnstable.lib.nixosSystem {
|
config.nixpkgs.lib.nixosSystem {
|
||||||
inherit (config) system;
|
inherit (config) system;
|
||||||
modules =
|
modules =
|
||||||
[
|
[
|
||||||
|
|
Loading…
Add table
Reference in a new issue