nix-config/home/xdg-user-dirs.nix

28 lines
773 B
Nix
Raw Permalink Normal View History

{ config, nixosConfig, ... }:
let
inherit (config.home) homeDirectory;
isPhone = nixosConfig.programs.calls.enable;
in
{
xdg = {
userDirs = {
enable = true;
createDirectories = true;
templates = null;
publicShare = null;
desktop = homeDirectory;
download = if isPhone then homeDirectory else "${homeDirectory}/";
documents = if isPhone then homeDirectory else "${homeDirectory}/";
music = if isPhone then homeDirectory else "${homeDirectory}/";
pictures = if isPhone then homeDirectory else "${homeDirectory}/";
videos = if isPhone then homeDirectory else "${homeDirectory}/";
};
configFile."user-dirs.locale".text = "ja_JP";
};
}