change XDG music directory to synced library

This commit is contained in:
Pim Kunis 2023-10-01 13:26:24 +02:00
parent 34d9585591
commit fee3fc3cb9

View file

@ -2,11 +2,12 @@
let let
nurpkgs = import (builtins.fetchTarball "https://github.com/nix-community/NUR/archive/master.tar.gz") { inherit pkgs; }; nurpkgs = import (builtins.fetchTarball "https://github.com/nix-community/NUR/archive/master.tar.gz") { inherit pkgs; };
firefox-addons = import ./firefox-addons (args // {inherit nurpkgs; }); firefox-addons = import ./firefox-addons (args // {inherit nurpkgs; });
homeDirectory = "/home/pim";
in in
{ {
home = { home = {
username = "pim"; username = "pim";
homeDirectory = "/home/pim"; homeDirectory = homeDirectory;
stateVersion = "23.05"; stateVersion = "23.05";
packages = with pkgs; [ packages = with pkgs; [
@ -160,6 +161,12 @@ in
xdg = { xdg = {
configFile."keepassxc/keepassxc.ini".text = lib.generators.toINI {} (import ./keepassxc.nix); configFile."keepassxc/keepassxc.ini".text = lib.generators.toINI {} (import ./keepassxc.nix);
userDirs = {
enable = true;
music = "${homeDirectory}/sync/Music";
};
desktopEntries.firefox-sue = { desktopEntries.firefox-sue = {
categories = [ "Network" "WebBrowser" ]; categories = [ "Network" "WebBrowser" ];
exec = "firefox -P sue --name firefox %U"; exec = "firefox -P sue --name firefox %U";