extract xdg-dirs
This commit is contained in:
		
							parent
							
								
									2649edfb47
								
							
						
					
					
						commit
						f8e4e5344e
					
				
					 4 changed files with 28 additions and 21 deletions
				
			
		| 
						 | 
				
			
			@ -4,7 +4,6 @@
 | 
			
		|||
      exec thunderbird
 | 
			
		||||
      exec webcord
 | 
			
		||||
      exec telegram-desktop
 | 
			
		||||
      exec element-desktop
 | 
			
		||||
    '';
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -33,6 +33,7 @@
 | 
			
		|||
    ./sway
 | 
			
		||||
    ./gnome.nix
 | 
			
		||||
    ./thunar.nix
 | 
			
		||||
    ./xdg-dirs.nix
 | 
			
		||||
    inputs.hyprland.homeManagerModules.default
 | 
			
		||||
    inputs.nix-index-database.hmModules.nix-index
 | 
			
		||||
  ];
 | 
			
		||||
| 
						 | 
				
			
			@ -162,25 +163,6 @@
 | 
			
		|||
    startInBackground = true;
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
  xdg.userDirs =
 | 
			
		||||
    let
 | 
			
		||||
      HOME = config.home.homeDirectory;
 | 
			
		||||
    in
 | 
			
		||||
    {
 | 
			
		||||
      enable = true;
 | 
			
		||||
      createDirectories = true;
 | 
			
		||||
 | 
			
		||||
      desktop = "${HOME}/Área de trabalho";
 | 
			
		||||
      documents = "${HOME}/Documentos";
 | 
			
		||||
      download = "${HOME}/Downloads";
 | 
			
		||||
      music = "${HOME}/Música";
 | 
			
		||||
      pictures = "${HOME}/Imagens";
 | 
			
		||||
      publicShare = "${HOME}/Público";
 | 
			
		||||
      templates = "${HOME}/Modelos";
 | 
			
		||||
      videos = "${HOME}/Vídeos";
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
  services.kdeconnect = {
 | 
			
		||||
    enable = true;
 | 
			
		||||
    indicator = true;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -17,7 +17,7 @@ in
 | 
			
		|||
          "sway/language"
 | 
			
		||||
          "mpd"
 | 
			
		||||
          "custom/playerctl"
 | 
			
		||||
          "tray"
 | 
			
		||||
          # "tray"
 | 
			
		||||
          "custom/caffeine"
 | 
			
		||||
          "pulseaudio"
 | 
			
		||||
          (lib.optional (osConfig.services.vpn.enable or false) "custom/vpn")
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										26
									
								
								user/xdg-dirs.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								user/xdg-dirs.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,26 @@
 | 
			
		|||
{ config, pkgs, lib, inputs, ... }:
 | 
			
		||||
let
 | 
			
		||||
  HOME = config.home.homeDirectory;
 | 
			
		||||
in
 | 
			
		||||
{
 | 
			
		||||
  xdg = {
 | 
			
		||||
    userDirs = {
 | 
			
		||||
      enable = true;
 | 
			
		||||
      createDirectories = true;
 | 
			
		||||
 | 
			
		||||
      desktop = "${HOME}/Área de trabalho";
 | 
			
		||||
      documents = "${HOME}/Documentos";
 | 
			
		||||
      download = "${HOME}/Downloads";
 | 
			
		||||
      music = "${HOME}/Música";
 | 
			
		||||
      pictures = "${HOME}/Imagens";
 | 
			
		||||
      publicShare = "${HOME}/Público";
 | 
			
		||||
      templates = "${HOME}/Modelos";
 | 
			
		||||
      videos = "${HOME}/Vídeos";
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  home.sessionVariables = {
 | 
			
		||||
    CARGO_HOME = "${config.xdg.dataHome}/cargo";
 | 
			
		||||
    RUSTUP_HOME = "${config.xdg.dataHome}/rustup";
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue