organize packages

This commit is contained in:
4DBug
2026-03-03 12:08:01 -06:00
parent 60805bcace
commit a21805e59b
42 changed files with 320 additions and 266 deletions

View File

@@ -0,0 +1,53 @@
{
den.aspects.beets = {
homeManager = { pkgs, ... }: {
home = {
packages = with pkgs; [
beets
ffmpeg
chromaprint
];
file.".config/beets/config.yaml".text = ''
library: ~/.local/share/beets/library.db
directory: ~/Music
import:
write: true
copy: true
plugins:
- convert
- fetchart
- embedart
- fromfilename
- chroma
- smartplaylist
paths:
default: $artist/$album/$track - $title
convert:
auto: true
format: opus
formats:
opus: ffmpeg -i $source -y -vn -c:a libopus -b:a 160k $dest
dest: /home/bug/Music
fetchart:
auto: yes
ifempty: yes
art_filename: folder
embedart:
auto: yes
smartplaylist:
playlist_dir: ~/Music/playlists
relative_to: library
output: extm3u
'';
};
};
};
}

View File

@@ -0,0 +1,39 @@
{
den.aspects.mpd = {
nixos = {
services = {
mpd = {
enable = true;
settings = {
music_directory = "/home/bug/Music";
decoder = [
{
plugin = "ffmpeg";
enabled = "yes";
}
{
plugin = "opus";
enabled = "no";
}
];
audio_output = [{
type = "pipewire";
name = "PipeWire Sound Server";
}];
};
user = "bug";
};
};
systemd.services = {
mpd.environment = {
XDG_RUNTIME_DIR = "/run/user/1000";
};
};
};
};
}

View File

@@ -0,0 +1,5 @@
{ den, ... }: {
den.aspects.music = {
includes = with den.aspects; [ beets player nicotine mpd ];
};
}

View File

@@ -0,0 +1,9 @@
{
den.aspects.nicotine = {
nixos = { pkgs, ... }: {
users.users.bug.packages = with pkgs; [
nicotine-plus
];
};
};
}

View File

@@ -0,0 +1,14 @@
{ ... }: {
den.aspects.player = {
nixos = { pkgs, ... }: {
users.users.bug.packages = with pkgs; [
euphonica
];
services.flatpak.packages = [
"org.gnome.Decibels"
"org.pipewire.Helvum"
];
};
};
}