upd
This commit is contained in:
@@ -11,10 +11,6 @@ let
|
||||
name = "otbr";
|
||||
cfg = config.${namespace}.services.${name};
|
||||
|
||||
otbrPackage =
|
||||
pkgs.callPackage "${inputs.nixpkgs-otbr}/pkgs/by-name/op/openthread-border-router/package.nix"
|
||||
{ };
|
||||
|
||||
otbrConfig = lib.${namespace}.mkModule {
|
||||
inherit config name;
|
||||
description = "Openthread border router";
|
||||
@@ -24,8 +20,9 @@ let
|
||||
moduleConfig = {
|
||||
services.openthread-border-router = {
|
||||
enable = true;
|
||||
backboneInterface = "enp2s0";
|
||||
package = otbrPackage;
|
||||
backboneInterfaces = [
|
||||
"enp2s0"
|
||||
];
|
||||
rest = {
|
||||
inherit (cfg) listenAddress;
|
||||
listenPort = cfg.restPort;
|
||||
@@ -45,7 +42,6 @@ let
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
"${inputs.nixpkgs-otbr}/nixos/modules/services/home-automation/openthread-border-router.nix"
|
||||
otbrConfig
|
||||
];
|
||||
}
|
||||
|
||||
@@ -31,7 +31,6 @@ in
|
||||
nil
|
||||
nix-output-monitor
|
||||
nixos-anywhere
|
||||
qemu
|
||||
udisks2
|
||||
unzip
|
||||
]
|
||||
|
||||
@@ -110,6 +110,7 @@ in
|
||||
|
||||
extraGroups = [
|
||||
"dialout"
|
||||
"uucp"
|
||||
"wheel"
|
||||
"keys"
|
||||
"networkmanager"
|
||||
|
||||
@@ -1,8 +1,12 @@
|
||||
{ lib, ... }:
|
||||
{ lib, pkgs, ... }:
|
||||
{
|
||||
# Virtualisation configuration
|
||||
virtualisation = {
|
||||
libvirtd.enable = lib.mkDefault true;
|
||||
libvirtd = {
|
||||
enable = lib.mkForce false;
|
||||
package = pkgs.stable.libvirt;
|
||||
qemu.package = pkgs.stable.qemu;
|
||||
};
|
||||
podman.enable = lib.mkDefault true;
|
||||
waydroid.enable = lib.mkDefault false;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user