Compare commits

..

No commits in common. "2758be3937b52dc38495e8730ae2b3f68fec01ed" and "a6df154f43c8b50c2af5ff54f5404dbf2eaa6ca6" have entirely different histories.

6 changed files with 3 additions and 49 deletions

View File

@ -1,13 +0,0 @@
# WARN: this file will get overwritten by $ cachix use <name>
{ pkgs, lib, ... }:
let
folder = ./cachix;
toImport = name: value: folder + ("/" + name);
filterCaches = key: value: value == "regular" && lib.hasSuffix ".nix" key;
imports = lib.mapAttrsToList toImport (lib.filterAttrs filterCaches (builtins.readDir folder));
in {
inherit imports;
nix.settings.substituters = ["https://cache.nixos.org/"];
}

View File

@ -1,13 +0,0 @@
{
nix = {
settings = {
substituters = [
"https://nix-community.cachix.org"
];
trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
};
};
}

View File

@ -40,16 +40,8 @@
allowUnfree = true; allowUnfree = true;
}; };
cachixOverlay = final: prev: {
nixosModules = (prev.nixosModules or { }) // {
cachixConfig = import ./cachix.nix;
};
};
extOverlays = [ extOverlays = [
(nvidia-patch.overlays.default) (nvidia-patch.overlays.default)
cachixOverlay
]; ];
importNixpkgs = { flake }: importNixpkgs = { flake }:
@ -75,14 +67,7 @@
in in
import nixpkgs { import nixpkgs {
inherit system config; inherit system config;
overlays = additionalOverlays ++ extOverlays ++ [ overlays = additionalOverlays ++ extOverlays;
(final: prev: {
ctranslate2 = prev.ctranslate2.override {
withCUDA = true;
withCuDNN = true;
};
})
];
}; };
wrapUtils = { pkgs }: wrapUtils = { pkgs }:

View File

@ -15,7 +15,7 @@ in
enable = true; enable = true;
uri = "tcp://127.0.0.1:${toString whisperPort}"; uri = "tcp://127.0.0.1:${toString whisperPort}";
model = "large-v3"; model = "large-v3";
device = "cuda"; device = "auto";
language = "en"; language = "en";
}; };
}; };
@ -24,7 +24,6 @@ in
enable = true; enable = true;
uri = "tcp://127.0.0.1:${toString piperPort}"; uri = "tcp://127.0.0.1:${toString piperPort}";
voice = "en-us-ryan-medium"; voice = "en-us-ryan-medium";
lengthScale = 0.63;
}; };
}; };
}; };
@ -45,7 +44,6 @@ in
}; };
default_config = { }; default_config = { };
automation = "!include automations.yaml"; automation = "!include automations.yaml";
frontend.themes = "!include_dir_merge_named themes";
binary_sensor = [{ binary_sensor = [{
platform = "template"; platform = "template";
sensors = { sensors = {
@ -1103,8 +1101,6 @@ in
"mqtt_json" "mqtt_json"
"mqtt_room" "mqtt_room"
"mqtt_statestream" "mqtt_statestream"
"github"
"webostv"
]; ];
extraPackages = python3Packages: with python3Packages; [ extraPackages = python3Packages: with python3Packages; [
pkgs.openai-whisper pkgs.openai-whisper

View File

@ -11,7 +11,7 @@ in
}; };
architect.vhost.${domain} = with config.architect.networks; { architect.vhost.${domain} = with config.architect.networks; {
dnsInterfaces = [ "tailscale" "lan" ]; dnsInterfaces = [ "tailscale" ];
locations."/" = { locations."/" = {
port = 7878; port = 7878;
allowLan = true; allowLan = true;

View File

@ -42,7 +42,6 @@
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
../hosts/${name}/default.nix ../hosts/${name}/default.nix
pkgs.nixosModules.cachixConfig
]; ];
}; };
} }