extract xdg-dirs

This commit is contained in:
Leonardo Eugênio 2023-06-06 10:04:14 -03:00
parent 2649edfb47
commit f8e4e5344e
4 changed files with 28 additions and 21 deletions

View file

@ -4,7 +4,6 @@
exec thunderbird
exec webcord
exec telegram-desktop
exec element-desktop
'';
};

View file

@ -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;

View file

@ -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
View 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";
};
}