feat(home-assistant): import openthread-border-router module from unstable
Pulls the services.openthread-border-router NixOS module directly from nixpkgs-unstable since it isn't in 25.11 yet. Service stays disabled in this commit; configuration follows. Also promotes `self` from `_module.args` to `specialArgs` in machines/configuration.nix, since `imports` are evaluated before `config` and so can't reach `_module.args.self`. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -49,6 +49,7 @@ in
|
|||||||
# use your hardware- model from this list: https://github.com/NixOS/nixos-hardware/blob/master/flake.nix
|
# use your hardware- model from this list: https://github.com/NixOS/nixos-hardware/blob/master/flake.nix
|
||||||
jupiter = nixosSystem {
|
jupiter = nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
specialArgs = { inherit self; };
|
||||||
modules = defaultModules ++ [
|
modules = defaultModules ++ [
|
||||||
# nixos-hardware.nixosModules.bmax-b7-power
|
# nixos-hardware.nixosModules.bmax-b7-power
|
||||||
./jupiter/configuration.nix
|
./jupiter/configuration.nix
|
||||||
@@ -56,6 +57,7 @@ in
|
|||||||
};
|
};
|
||||||
mibook = nixosSystem {
|
mibook = nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
specialArgs = { inherit self; };
|
||||||
modules = defaultModules ++ [
|
modules = defaultModules ++ [
|
||||||
# nixos-hardware.nixosModules.mibook
|
# nixos-hardware.nixosModules.mibook
|
||||||
./mibook/configuration.nix
|
./mibook/configuration.nix
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
# manages home automations
|
# manages home automations
|
||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
|
self,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
@@ -10,6 +11,12 @@ let
|
|||||||
hostName = config.networking.hostName;
|
hostName = config.networking.hostName;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
imports = [
|
||||||
|
# services.openthread-border-router isn't in nixos-25.11; pull from
|
||||||
|
# nixpkgs-unstable. Package comes from the existing unstable overlay.
|
||||||
|
"${self.inputs.nixpkgs-unstable}/nixos/modules/services/home-automation/openthread-border-router.nix"
|
||||||
|
];
|
||||||
|
|
||||||
options.my.profiles.home-assistant = with lib; {
|
options.my.profiles.home-assistant = with lib; {
|
||||||
enable = mkEnableOption "Home Automation";
|
enable = mkEnableOption "Home Automation";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user