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
|
||||
];
|
||||
|
||||
# TODO: netd: make error handling with HA notifs
|
||||
# TODO: nix: add HA options for custom_sentences and stuff
|
||||
|
||||
services.home-assistant = {
|
||||
enable = true;
|
||||
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
|
|
@ -1 +0,0 @@
|
|||
|
|
@ -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;
|
||||
|
|
|
@ -14,7 +14,6 @@ using System.Reflection;
|
|||
try
|
||||
{
|
||||
await Host.CreateDefaultBuilder(args)
|
||||
.UseNetDaemonAppSettings()
|
||||
.UseNetDaemonDefaultLogging()
|
||||
.UseNetDaemonRuntime()
|
||||
.UseNetDaemonTextToSpeech()
|
||||
|
|
Loading…
Reference in a new issue