This commit is contained in:
mjallen18
2026-04-16 12:38:07 -05:00
parent 95f08a258e
commit 1767debfd8
13 changed files with 104 additions and 95 deletions

View File

@@ -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
];
}

View File

@@ -31,7 +31,6 @@ in
nil
nix-output-monitor
nixos-anywhere
qemu
udisks2
unzip
]

View File

@@ -110,6 +110,7 @@ in
extraGroups = [
"dialout"
"uucp"
"wheel"
"keys"
"networkmanager"

View File

@@ -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;
};