From 2d7878e9b8bb3bb162b450b7d2fd7103dd22df0d Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Fri, 5 Apr 2024 10:34:08 -0400 Subject: [PATCH] mauville: set default music directory to /mnt/Media/Music --- homeManagerModules/default.nix | 18 +++++++++--------- hosts/mauville/home.nix | 2 ++ 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/homeManagerModules/default.nix b/homeManagerModules/default.nix index 10f79311..34f2fe82 100644 --- a/homeManagerModules/default.nix +++ b/homeManagerModules/default.nix @@ -1,4 +1,4 @@ -{ config, pkgs, ... }: +{ config, pkgs, lib, ... }: { imports = [ ./cliApps ./guiApps ./desktopEnv ./userServices ]; @@ -14,14 +14,14 @@ xdg.userDirs = { enable = true; createDirectories = true; - desktop = "${config.home.homeDirectory}/dsktp"; - documents = "${config.home.homeDirectory}/docs"; - download = "${config.home.homeDirectory}/dwnlds"; - music = "${config.home.homeDirectory}/music"; - videos = "${config.home.homeDirectory}/vids"; - pictures = "${config.home.homeDirectory}/pics"; - publicShare = "${config.home.homeDirectory}/pub"; - templates = "${config.home.homeDirectory}/tmplts"; + desktop = lib.mkDefault "${config.home.homeDirectory}/dsktp"; + documents = lib.mkDefault "${config.home.homeDirectory}/docs"; + download = lib.mkDefault "${config.home.homeDirectory}/dwnlds"; + music = lib.mkDefault "${config.home.homeDirectory}/music"; + videos = lib.mkDefault "${config.home.homeDirectory}/vids"; + pictures = lib.mkDefault "${config.home.homeDirectory}/pics"; + publicShare = lib.mkDefault "${config.home.homeDirectory}/pub"; + templates = lib.mkDefault "${config.home.homeDirectory}/tmplts"; extraConfig = { XDG_SRC_DIR = "${config.home.homeDirectory}/src"; }; }; } diff --git a/hosts/mauville/home.nix b/hosts/mauville/home.nix index 29937bb7..f9a22116 100644 --- a/hosts/mauville/home.nix +++ b/hosts/mauville/home.nix @@ -8,5 +8,7 @@ home.stateVersion = "23.11"; programs.home-manager.enable = true; + + xdg.userDirs.music = "/mnt/Media/Music"; }; }