feat: add beets
This commit is contained in:
parent
5d40d31768
commit
365196caf6
2 changed files with 42 additions and 2 deletions
|
|
@ -1,4 +1,8 @@
|
||||||
{pkgs, ...}: {
|
{
|
||||||
|
pkgs,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
../../modules/zfs_unencrypted.nix
|
../../modules/zfs_unencrypted.nix
|
||||||
../../modules/shared.nix
|
../../modules/shared.nix
|
||||||
|
|
@ -8,6 +12,7 @@
|
||||||
./mail-server.nix
|
./mail-server.nix
|
||||||
./website/root
|
./website/root
|
||||||
./navidrome.nix
|
./navidrome.nix
|
||||||
|
inputs.home-manager.nixosModules.default
|
||||||
];
|
];
|
||||||
|
|
||||||
time.timeZone = "Europe/Berlin";
|
time.timeZone = "Europe/Berlin";
|
||||||
|
|
@ -33,6 +38,19 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
home-manager = {
|
||||||
|
users.moritz = {
|
||||||
|
programs.home-manager.enable = true;
|
||||||
|
home = {
|
||||||
|
username = "moritz";
|
||||||
|
homeDirectory = "/home/moritz";
|
||||||
|
stateVersion = "25.05";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
useGlobalPkgs = true;
|
||||||
|
useUserPackages = true;
|
||||||
|
};
|
||||||
|
|
||||||
# You can get your disk id by running the following command on the installer:
|
# You can get your disk id by running the following command on the installer:
|
||||||
# Replace <IP> with the IP of the installer printed on the screen or by running the `ip addr` command.
|
# Replace <IP> with the IP of the installer printed on the screen or by running the `ip addr` command.
|
||||||
# ssh root@<IP> lsblk --output NAME,ID-LINK,FSTYPE,SIZE,MOUNTPOINT
|
# ssh root@<IP> lsblk --output NAME,ID-LINK,FSTYPE,SIZE,MOUNTPOINT
|
||||||
|
|
|
||||||
|
|
@ -22,9 +22,31 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
home-manager.users.moritz.programs.beets = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
directory = config.services.navidrome.settings.MusicFolder;
|
||||||
|
library = "/mnt/music/beet/musiclibrary.db";
|
||||||
|
plugins = [
|
||||||
|
"autobpm"
|
||||||
|
"mbsync"
|
||||||
|
"badfiles"
|
||||||
|
"chroma"
|
||||||
|
"duplicates"
|
||||||
|
"lyrics"
|
||||||
|
"replaygain"
|
||||||
|
];
|
||||||
|
musicbrainz.genres = true;
|
||||||
|
lyrics.synced = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
services.borgbackup.jobs = {
|
services.borgbackup.jobs = {
|
||||||
music = {
|
music = {
|
||||||
paths = config.services.navidrome.settings.MusicFolder;
|
paths = [
|
||||||
|
config.services.navidrome.settings.MusicFolder
|
||||||
|
config.home-manager.users.moritz.programs.beets.settings.library
|
||||||
|
];
|
||||||
repo = "u461386-sub1@u461386.your-storagebox.de:music";
|
repo = "u461386-sub1@u461386.your-storagebox.de:music";
|
||||||
doInit = true;
|
doInit = true;
|
||||||
encryption = {
|
encryption = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue