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 thunderbird
 | 
				
			||||||
      exec webcord
 | 
					      exec webcord
 | 
				
			||||||
      exec telegram-desktop
 | 
					      exec telegram-desktop
 | 
				
			||||||
      exec element-desktop
 | 
					 | 
				
			||||||
    '';
 | 
					    '';
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -33,6 +33,7 @@
 | 
				
			||||||
    ./sway
 | 
					    ./sway
 | 
				
			||||||
    ./gnome.nix
 | 
					    ./gnome.nix
 | 
				
			||||||
    ./thunar.nix
 | 
					    ./thunar.nix
 | 
				
			||||||
 | 
					    ./xdg-dirs.nix
 | 
				
			||||||
    inputs.hyprland.homeManagerModules.default
 | 
					    inputs.hyprland.homeManagerModules.default
 | 
				
			||||||
    inputs.nix-index-database.hmModules.nix-index
 | 
					    inputs.nix-index-database.hmModules.nix-index
 | 
				
			||||||
  ];
 | 
					  ];
 | 
				
			||||||
| 
						 | 
					@ -162,25 +163,6 @@
 | 
				
			||||||
    startInBackground = true;
 | 
					    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 = {
 | 
					  services.kdeconnect = {
 | 
				
			||||||
    enable = true;
 | 
					    enable = true;
 | 
				
			||||||
    indicator = true;
 | 
					    indicator = true;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -17,7 +17,7 @@ in
 | 
				
			||||||
          "sway/language"
 | 
					          "sway/language"
 | 
				
			||||||
          "mpd"
 | 
					          "mpd"
 | 
				
			||||||
          "custom/playerctl"
 | 
					          "custom/playerctl"
 | 
				
			||||||
          "tray"
 | 
					          # "tray"
 | 
				
			||||||
          "custom/caffeine"
 | 
					          "custom/caffeine"
 | 
				
			||||||
          "pulseaudio"
 | 
					          "pulseaudio"
 | 
				
			||||||
          (lib.optional (osConfig.services.vpn.enable or false) "custom/vpn")
 | 
					          (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