27 lines
		
	
	
	
		
			793 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
	
		
			793 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{ lib, config, ... }:
 | 
						|
 | 
						|
let
 | 
						|
  cfg = config.homeModules.config.userDirs;
 | 
						|
in
 | 
						|
 | 
						|
{
 | 
						|
  config = lib.mkIf cfg.enable {
 | 
						|
    xdg = {
 | 
						|
      enable = true;
 | 
						|
      configHome = "${config.home.homeDirectory}/.config";
 | 
						|
      cacheHome = "${config.home.homeDirectory}/.cache";
 | 
						|
      dataHome = "${config.home.homeDirectory}/.local/share";
 | 
						|
      stateHome = "${config.home.homeDirectory}/.local/state";
 | 
						|
 | 
						|
      userDirs = {
 | 
						|
        enable = true;
 | 
						|
        createDirectories = true;
 | 
						|
        desktop = "${config.home.homeDirectory}/Desktop";
 | 
						|
        documents = "${config.home.homeDirectory}/Documents";
 | 
						|
        music = "${config.home.homeDirectory}/Media/Music";
 | 
						|
        videos = "${config.home.homeDirectory}/Media/Videos";
 | 
						|
        pictures = "${config.home.homeDirectory}/Media/Pictures";
 | 
						|
      };
 | 
						|
    };
 | 
						|
  }; 
 | 
						|
}
 |