add beets

This commit is contained in:
2026-07-17 22:30:24 -04:00
parent 0f19a2b0b3
commit 92688f9585
5 changed files with 89 additions and 0 deletions
+4
View File
@@ -10,6 +10,10 @@
helix helix
]; ];
imports = [
./modules/ripping.nix
];
programs.git = { programs.git = {
enable = true; enable = true;
settings = { settings = {
+24
View File
@@ -11,6 +11,7 @@
../../modules/site.nix ../../modules/site.nix
../../modules/gitea.nix ../../modules/gitea.nix
../../modules/navidrome.nix ../../modules/navidrome.nix
../../modules/immich.nix
]; ];
network.node = "desktop"; network.node = "desktop";
@@ -82,6 +83,29 @@
AllowSuspendThenHibernate = "no"; AllowSuspendThenHibernate = "no";
}; };
systemd.services.amdgpu-performance = {
description = "Force AMD GPU performance level to high";
wantedBy = [ "multi-user.target" ];
serviceConfig = {
Type = "oneshot";
ExecStart = ''
${pkgs.bash}/bin/bash -c '
for gpu in /sys/class/drm/card*/device; do
if [ -f "$gpu/vendor" ] && [ "$(cat "$gpu/vendor")" = "0x1002" ]; then
echo high > "$gpu/power_dpm_force_performance_level"
fi
done
'
'';
};
};
environment.systemPackages = with pkgs; [
whipper
flac
];
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.experimental-features = [ "nix-command" "flakes" ];
system.stateVersion = "26.05"; system.stateVersion = "26.05";
+4
View File
@@ -16,6 +16,10 @@
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
boot.kernelPackages = pkgs.linuxPackages_latest; boot.kernelPackages = pkgs.linuxPackages_latest;
boot.kernelParams = [
"amdgpu.runpm=0"
];
fileSystems."/" = fileSystems."/" =
{ device = "/dev/disk/by-uuid/d7450680-7d53-4842-83c5-7fc32526dff1"; { device = "/dev/disk/by-uuid/d7450680-7d53-4842-83c5-7fc32526dff1";
fsType = "ext4"; fsType = "ext4";
+15
View File
@@ -0,0 +1,15 @@
{ config, lib, pkgs, ... }:
{
services.immich.enable = true;
services.immich.port = 2283;
services.immich.host = "0.0.0.0";
services.immich.mediaLocation = "/var/lib/media/images";
services.caddy.enable = true;
services.caddy.virtualHosts."image.grasswren.net".extraConfig = ''
reverse_proxy localhost:2283
'';
networking.firewall.allowedTCPPorts = [ 2283 ];
}
+42
View File
@@ -0,0 +1,42 @@
{ config, lib, pkgs, ... }:
{
home.packages = with pkgs; [
whipper
beets
];
programs.beets = {
enable = true;
settings = {
directory = "/var/lib/media/music";
library = "/var/lib/media/music/library.db";
plugins = [
"fetchart"
"embedart"
"scrub"
];
per_disc_numbering = true;
import = {
move = true;
copy = false;
write = true;
resume = "ask";
incremental = false;
timid = false;
};
paths = {
default = "$albumartist/$album%aunique{}/$track - $title";
};
fetchart.auto = true;
embedart.auto = true;
scrub.auto = true;
};
};
}