add beets
This commit is contained in:
@@ -10,6 +10,10 @@
|
||||
helix
|
||||
];
|
||||
|
||||
imports = [
|
||||
./modules/ripping.nix
|
||||
];
|
||||
|
||||
programs.git = {
|
||||
enable = true;
|
||||
settings = {
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
../../modules/site.nix
|
||||
../../modules/gitea.nix
|
||||
../../modules/navidrome.nix
|
||||
../../modules/immich.nix
|
||||
];
|
||||
|
||||
network.node = "desktop";
|
||||
@@ -82,6 +83,29 @@
|
||||
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;
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
system.stateVersion = "26.05";
|
||||
|
||||
@@ -16,6 +16,10 @@
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
|
||||
boot.kernelParams = [
|
||||
"amdgpu.runpm=0"
|
||||
];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/d7450680-7d53-4842-83c5-7fc32526dff1";
|
||||
fsType = "ext4";
|
||||
|
||||
@@ -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 ];
|
||||
}
|
||||
@@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user