fix(netd): handle source filter properly
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
a716aca25b
commit
cf30e1c21f
7 changed files with 11 additions and 16 deletions
|
@ -9,6 +9,9 @@
|
||||||
./timer.nix
|
./timer.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# TODO: netd: make error handling with HA notifs
|
||||||
|
# TODO: nix: add HA options for custom_sentences and stuff
|
||||||
|
|
||||||
services.home-assistant = {
|
services.home-assistant = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
|
|
|
@ -1,25 +1,22 @@
|
||||||
{
|
{
|
||||||
|
lib,
|
||||||
buildDotnetModule,
|
buildDotnetModule,
|
||||||
dotnetCorePackages,
|
dotnetCorePackages,
|
||||||
}: let
|
}: let
|
||||||
|
inherit (lib) any hasSuffix;
|
||||||
pname = "netdaemon-config";
|
pname = "netdaemon-config";
|
||||||
in
|
in
|
||||||
buildDotnetModule {
|
buildDotnetModule {
|
||||||
inherit pname;
|
inherit pname;
|
||||||
version = "0.0.0";
|
version = "0.0.0";
|
||||||
|
|
||||||
src =
|
src = builtins.path {
|
||||||
builtins.filterSource
|
name = "src";
|
||||||
(file: type:
|
path = ./.;
|
||||||
|
filter = file: type:
|
||||||
(type != "directory")
|
(type != "directory")
|
||||||
|| (builtins.all (f: baseNameOf file != f) [
|
|| any (s: hasSuffix s file) [".cs" ".csproj"];
|
||||||
".envrc"
|
};
|
||||||
"deps.nix"
|
|
||||||
"default.nix"
|
|
||||||
"netdaemon.nix"
|
|
||||||
"package.nix"
|
|
||||||
]))
|
|
||||||
./.;
|
|
||||||
|
|
||||||
projectFile = "netdaemon.csproj";
|
projectFile = "netdaemon.csproj";
|
||||||
nugetDeps = ./deps.nix;
|
nugetDeps = ./deps.nix;
|
||||||
|
|
|
@ -14,7 +14,6 @@ using System.Reflection;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
await Host.CreateDefaultBuilder(args)
|
await Host.CreateDefaultBuilder(args)
|
||||||
.UseNetDaemonAppSettings()
|
|
||||||
.UseNetDaemonDefaultLogging()
|
.UseNetDaemonDefaultLogging()
|
||||||
.UseNetDaemonRuntime()
|
.UseNetDaemonRuntime()
|
||||||
.UseNetDaemonTextToSpeech()
|
.UseNetDaemonTextToSpeech()
|
||||||
|
|
Loading…
Reference in a new issue