tachikoma flake/service config

This commit is contained in:
Nathan Braswell
2026-06-19 12:09:44 -04:00
parent 3263e03a34
commit ddf6e9d16a
2 changed files with 90 additions and 2 deletions
+34 -1
View File
@@ -24,10 +24,14 @@
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
tachikoma = {
url = "git+https://forge.room409.xyz/miloignis/tachikoma.git";
inputs.nixpkgs.follows = "nixpkgs";
};
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
};
outputs = { self, nixpkgs, nur, stylix, awww, niri, home-manager, nixos-hardware }@attrs:
outputs = { self, nixpkgs, nur, stylix, awww, niri, home-manager, tachikoma, nixos-hardware }@attrs:
let
system = "x86_64-linux";
make_besley = pkgs:(lib: (pkgs.stdenvNoCC.mkDerivation rec {
@@ -290,6 +294,7 @@
nur.modules.nixos.default
stylix.nixosModules.stylix
niri.nixosModules.niri
tachikoma.nixosModules.default
home-manager.nixosModules.home-manager
homeManagerSharedModule
({ config, lib, pkgs, modulesPath, ... }@innerArgs: (lib.recursiveUpdate (commonConfigFunc innerArgs [ pkgs.gpodder pkgs.evince ]) {
@@ -318,6 +323,34 @@
programs.fuse.userAllowOther = true;
services.jellyfin.enable = true;
services.tachikoma = {
enable = true;
user = "nathan";
config = ''
database_prefix = "/home/nathan/tachikoma_db"
adam_smasher_your_io_bandwidth = true # multi-threaded, mmap hashing for new movies on startup
reset_interval = 60
id = "batou"
port = 8080
[shares.default]
serve = [ "/movies", "/nas_disk1", "/nas_disk2/tachi", "/nas_disk3/tachi" ]
download_dir = "/nas_disk1/cache"
mount_point = "/fuse_mount" # this is optional, remove if you don't want to FUSE
max_delete = 30
#[shares.podcasts]
#serve = [ "/home/nathan/podcasts" ]
#[shares.audiobooks]
#serve = [ "/home/nathan/audiobooks" ]
[shares.a_darker_shade_of_grey]
serve = [ "/home/nathan/a_darker_shade_of_grey" ]
max_delete = 5
#[shares.chat]
#serve = [ ]
'';
};
# THIS SEEMS CONTRADICTORY
# The global useDHCP flag is deprecated, therefore explicitly set to false here.