This commit is contained in:
mjallen18
2026-04-05 13:50:18 -05:00
parent 10b906a27c
commit 37b0c50821
5 changed files with 40 additions and 23 deletions

View File

@@ -30,7 +30,10 @@ let
description = "AI Services"; description = "AI Services";
options = { options = {
llama-cpp = { llama-cpp = {
model = mkOpt types.str "models--unsloth--gemma-4-26B-A4B-it-GGUF/snapshots/b8654b48d979f2853b7a81d6541ca64eea7dc3c5/gemma-4-26B-A4B-it-UD-Q8_K_XL" ""; model =
mkOpt types.str
"models--unsloth--gemma-4-26B-A4B-it-GGUF/snapshots/b8654b48d979f2853b7a81d6541ca64eea7dc3c5/gemma-4-26B-A4B-it-UD-Q8_K_XL"
"";
}; };
}; };
moduleConfig = { moduleConfig = {

View File

@@ -15,7 +15,7 @@ in
image = "ghcr.io/pennydreadful/bookshelf:hardcover"; image = "ghcr.io/pennydreadful/bookshelf:hardcover";
internalPort = 8787; internalPort = 8787;
volumes = [ volumes = [
"${cfg.configDir}/bookshelf:/config" "${cfg.configDir}/bookshelf:/config"
"${cfg.configDir}/incomplete:/media/nas/main/appdata/incomplete" "${cfg.configDir}/incomplete:/media/nas/main/appdata/incomplete"
"${cfg.dataDir}/books:/media/nas/main/books" "${cfg.dataDir}/books:/media/nas/main/books"
]; ];

View File

@@ -2,12 +2,24 @@
_final: prev: { _final: prev: {
home-assistant = prev.home-assistant.override { home-assistant = prev.home-assistant.override {
packageOverrides = _self: super: { packageOverrides = _self: super: {
nice-go = super.nice-go.overridePythonAttrs (_old: { doCheck = false; }); nice-go = super.nice-go.overridePythonAttrs (_old: {
cfn-lint = super.cfn-lint.overridePythonAttrs (_old: { doCheck = false; }); doCheck = false;
aiobotocore = super.aiobotocore.overridePythonAttrs (_old: { doCheck = false; }); });
connect-box = super.connect-box.overridePythonAttrs (_old: { doCheck = false; }); cfn-lint = super.cfn-lint.overridePythonAttrs (_old: {
motionblindsble = super.motionblindsble.overridePythonAttrs (_old: { doCheck = false; }); doCheck = false;
pyinsteon = super.pyinsteon.overridePythonAttrs (_old: { doCheck = false; }); });
aiobotocore = super.aiobotocore.overridePythonAttrs (_old: {
doCheck = false;
});
connect-box = super.connect-box.overridePythonAttrs (_old: {
doCheck = false;
});
motionblindsble = super.motionblindsble.overridePythonAttrs (_old: {
doCheck = false;
});
pyinsteon = super.pyinsteon.overridePythonAttrs (_old: {
doCheck = false;
});
psnawp = super.psnawp.overridePythonAttrs (old: { psnawp = super.psnawp.overridePythonAttrs (old: {
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ super.pythonRelaxDepsHook ]; nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ super.pythonRelaxDepsHook ];
pythonRelaxDeps = [ "pycountry" ]; pythonRelaxDeps = [ "pycountry" ];

View File

@@ -41,4 +41,4 @@ stdenvNoCC.mkDerivation rec {
platforms = with lib.platforms; linux ++ darwin ++ windows; platforms = with lib.platforms; linux ++ darwin ++ windows;
license = with lib.licenses; [ gpl3Only ]; license = with lib.licenses; [ gpl3Only ];
}; };
} }

View File

@@ -24,19 +24,21 @@ python3Packages.buildPythonPackage rec {
build-system = with python3Packages; [ hatchling ]; build-system = with python3Packages; [ hatchling ];
dependencies = with python3Packages; [ dependencies =
aiohttp with python3Packages;
aiomqtt [
click aiohttp
construct aiomqtt
paho-mqtt click
protobuf construct
pycryptodome paho-mqtt
pyrate-limiter protobuf
vacuum-map-parser-roborock pycryptodome
click-shell pyrate-limiter
] vacuum-map-parser-roborock
++ lib.optionals stdenv.hostPlatform.isDarwin (with python3Packages; [ pycryptodomex ]); click-shell
]
++ lib.optionals stdenv.hostPlatform.isDarwin (with python3Packages; [ pycryptodomex ]);
nativeCheckInputs = with python3Packages; [ nativeCheckInputs = with python3Packages; [
aioresponses aioresponses
@@ -58,4 +60,4 @@ python3Packages.buildPythonPackage rec {
maintainers = with lib.maintainers; [ fab ]; maintainers = with lib.maintainers; [ fab ];
mainProgram = "roborock"; mainProgram = "roborock";
}; };
} }