Compare commits
No commits in common. "2758be3937b52dc38495e8730ae2b3f68fec01ed" and "a6df154f43c8b50c2af5ff54f5404dbf2eaa6ca6" have entirely different histories.
2758be3937
...
a6df154f43
13
cachix.nix
13
cachix.nix
@ -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/"];
|
||||
}
|
@ -1,13 +0,0 @@
|
||||
|
||||
{
|
||||
nix = {
|
||||
settings = {
|
||||
substituters = [
|
||||
"https://nix-community.cachix.org"
|
||||
];
|
||||
trusted-public-keys = [
|
||||
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
17
flake.nix
17
flake.nix
@ -40,16 +40,8 @@
|
||||
allowUnfree = true;
|
||||
};
|
||||
|
||||
cachixOverlay = final: prev: {
|
||||
nixosModules = (prev.nixosModules or { }) // {
|
||||
cachixConfig = import ./cachix.nix;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
extOverlays = [
|
||||
(nvidia-patch.overlays.default)
|
||||
cachixOverlay
|
||||
];
|
||||
|
||||
importNixpkgs = { flake }:
|
||||
@ -75,14 +67,7 @@
|
||||
in
|
||||
import nixpkgs {
|
||||
inherit system config;
|
||||
overlays = additionalOverlays ++ extOverlays ++ [
|
||||
(final: prev: {
|
||||
ctranslate2 = prev.ctranslate2.override {
|
||||
withCUDA = true;
|
||||
withCuDNN = true;
|
||||
};
|
||||
})
|
||||
];
|
||||
overlays = additionalOverlays ++ extOverlays;
|
||||
};
|
||||
|
||||
wrapUtils = { pkgs }:
|
||||
|
@ -15,7 +15,7 @@ in
|
||||
enable = true;
|
||||
uri = "tcp://127.0.0.1:${toString whisperPort}";
|
||||
model = "large-v3";
|
||||
device = "cuda";
|
||||
device = "auto";
|
||||
language = "en";
|
||||
};
|
||||
};
|
||||
@ -24,7 +24,6 @@ in
|
||||
enable = true;
|
||||
uri = "tcp://127.0.0.1:${toString piperPort}";
|
||||
voice = "en-us-ryan-medium";
|
||||
lengthScale = 0.63;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -45,7 +44,6 @@ in
|
||||
};
|
||||
default_config = { };
|
||||
automation = "!include automations.yaml";
|
||||
frontend.themes = "!include_dir_merge_named themes";
|
||||
binary_sensor = [{
|
||||
platform = "template";
|
||||
sensors = {
|
||||
@ -1103,8 +1101,6 @@ in
|
||||
"mqtt_json"
|
||||
"mqtt_room"
|
||||
"mqtt_statestream"
|
||||
"github"
|
||||
"webostv"
|
||||
];
|
||||
extraPackages = python3Packages: with python3Packages; [
|
||||
pkgs.openai-whisper
|
||||
|
@ -11,7 +11,7 @@ in
|
||||
};
|
||||
|
||||
architect.vhost.${domain} = with config.architect.networks; {
|
||||
dnsInterfaces = [ "tailscale" "lan" ];
|
||||
dnsInterfaces = [ "tailscale" ];
|
||||
locations."/" = {
|
||||
port = 7878;
|
||||
allowLan = true;
|
||||
|
@ -42,7 +42,6 @@
|
||||
|
||||
home-manager.nixosModules.home-manager
|
||||
../hosts/${name}/default.nix
|
||||
pkgs.nixosModules.cachixConfig
|
||||
];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user