Compare commits
7 Commits
a6df154f43
...
2758be3937
Author | SHA1 | Date | |
---|---|---|---|
|
2758be3937 | ||
|
832761b32f | ||
|
0f18c6ec87 | ||
|
4f299b0ca3 | ||
|
44f757f535 | ||
|
2f23f3db9e | ||
|
e910399750 |
13
cachix.nix
Normal file
13
cachix.nix
Normal file
@ -0,0 +1,13 @@
|
||||
|
||||
# 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/"];
|
||||
}
|
13
cachix/nix-community.nix
Normal file
13
cachix/nix-community.nix
Normal file
@ -0,0 +1,13 @@
|
||||
|
||||
{
|
||||
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,8 +40,16 @@
|
||||
allowUnfree = true;
|
||||
};
|
||||
|
||||
cachixOverlay = final: prev: {
|
||||
nixosModules = (prev.nixosModules or { }) // {
|
||||
cachixConfig = import ./cachix.nix;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
extOverlays = [
|
||||
(nvidia-patch.overlays.default)
|
||||
cachixOverlay
|
||||
];
|
||||
|
||||
importNixpkgs = { flake }:
|
||||
@ -67,7 +75,14 @@
|
||||
in
|
||||
import nixpkgs {
|
||||
inherit system config;
|
||||
overlays = additionalOverlays ++ extOverlays;
|
||||
overlays = additionalOverlays ++ extOverlays ++ [
|
||||
(final: prev: {
|
||||
ctranslate2 = prev.ctranslate2.override {
|
||||
withCUDA = true;
|
||||
withCuDNN = true;
|
||||
};
|
||||
})
|
||||
];
|
||||
};
|
||||
|
||||
wrapUtils = { pkgs }:
|
||||
|
@ -15,7 +15,7 @@ in
|
||||
enable = true;
|
||||
uri = "tcp://127.0.0.1:${toString whisperPort}";
|
||||
model = "large-v3";
|
||||
device = "auto";
|
||||
device = "cuda";
|
||||
language = "en";
|
||||
};
|
||||
};
|
||||
@ -24,6 +24,7 @@ in
|
||||
enable = true;
|
||||
uri = "tcp://127.0.0.1:${toString piperPort}";
|
||||
voice = "en-us-ryan-medium";
|
||||
lengthScale = 0.63;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -44,6 +45,7 @@ in
|
||||
};
|
||||
default_config = { };
|
||||
automation = "!include automations.yaml";
|
||||
frontend.themes = "!include_dir_merge_named themes";
|
||||
binary_sensor = [{
|
||||
platform = "template";
|
||||
sensors = {
|
||||
@ -1101,6 +1103,8 @@ 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" ];
|
||||
dnsInterfaces = [ "tailscale" "lan" ];
|
||||
locations."/" = {
|
||||
port = 7878;
|
||||
allowLan = true;
|
||||
|
@ -42,6 +42,7 @@
|
||||
|
||||
home-manager.nixosModules.home-manager
|
||||
../hosts/${name}/default.nix
|
||||
pkgs.nixosModules.cachixConfig
|
||||
];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user