From fee3fc3cb9bc7267890e368da4465bfd75dfffb5 Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Sun, 1 Oct 2023 13:26:24 +0200 Subject: [PATCH] change XDG music directory to synced library --- home.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/home.nix b/home.nix index 40f8f58..dba5de8 100644 --- a/home.nix +++ b/home.nix @@ -2,11 +2,12 @@ let nurpkgs = import (builtins.fetchTarball "https://github.com/nix-community/NUR/archive/master.tar.gz") { inherit pkgs; }; firefox-addons = import ./firefox-addons (args // {inherit nurpkgs; }); + homeDirectory = "/home/pim"; in { home = { username = "pim"; - homeDirectory = "/home/pim"; + homeDirectory = homeDirectory; stateVersion = "23.05"; packages = with pkgs; [ @@ -160,6 +161,12 @@ in xdg = { configFile."keepassxc/keepassxc.ini".text = lib.generators.toINI {} (import ./keepassxc.nix); + + userDirs = { + enable = true; + music = "${homeDirectory}/sync/Music"; + }; + desktopEntries.firefox-sue = { categories = [ "Network" "WebBrowser" ]; exec = "firefox -P sue --name firefox %U";