my system configurations ^-^
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

add option

willow 8bc56f7f 74fba5ca

+18 -7
+15 -7
modules/nixos/services/navidrome.nix
··· 1 - {config, ...}: { 2 - services.navidrome = { 3 - enable = true; 4 - openFirewall = true; 1 + { 2 + config, 3 + lib, 4 + ... 5 + }: let 6 + cfg = config.settings.system.services.navidrome; 7 + in { 8 + config = lib.mkIf cfg.enable { 9 + services.navidrome = { 10 + enable = true; 11 + openFirewall = true; 5 12 6 - settings = { 7 - # TODO: use this value for beets 8 - MusicFolder = "${config.settings.userDirs.music}/music"; 13 + settings = { 14 + # TODO: use this value for beets 15 + MusicFolder = "${config.home.homeDirectory}/media/music/music"; 16 + }; 9 17 }; 10 18 }; 11 19 }
+3
modules/shared/options/default.nix
··· 113 113 printing.enable = 114 114 mkEnableOption "Enable printing" 115 115 // {default = cfg.system.services.enable;}; 116 + navidrome.enable = 117 + mkEnableOption "Enable navidrome" 118 + // {default = false;}; 116 119 networking.enable = 117 120 mkEnableOption "Enable networking" 118 121 // {default = cfg.system.services.enable;};