fix(netd): handle source filter properly
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-10-09 11:59:13 -04:00
parent a716aca25b
commit cf30e1c21f
7 changed files with 11 additions and 16 deletions

View file

@ -9,6 +9,9 @@
./timer.nix
];
# TODO: netd: make error handling with HA notifs
# TODO: nix: add HA options for custom_sentences and stuff
services.home-assistant = {
enable = true;

View file

@ -1,25 +1,22 @@
{
lib,
buildDotnetModule,
dotnetCorePackages,
}: let
inherit (lib) any hasSuffix;
pname = "netdaemon-config";
in
buildDotnetModule {
inherit pname;
version = "0.0.0";
src =
builtins.filterSource
(file: type:
src = builtins.path {
name = "src";
path = ./.;
filter = file: type:
(type != "directory")
|| (builtins.all (f: baseNameOf file != f) [
".envrc"
"deps.nix"
"default.nix"
"netdaemon.nix"
"package.nix"
]))
./.;
|| any (s: hasSuffix s file) [".cs" ".csproj"];
};
projectFile = "netdaemon.csproj";
nugetDeps = ./deps.nix;

View file

@ -14,7 +14,6 @@ using System.Reflection;
try
{
await Host.CreateDefaultBuilder(args)
.UseNetDaemonAppSettings()
.UseNetDaemonDefaultLogging()
.UseNetDaemonRuntime()
.UseNetDaemonTextToSpeech()