mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-24 17:23:09 +01:00
26 lines
739 B
Nix
26 lines
739 B
Nix
{ config, phone, ... }:
|
|
|
|
let
|
|
inherit (config.home) homeDirectory;
|
|
in
|
|
{
|
|
xdg = {
|
|
userDirs = {
|
|
enable = true;
|
|
createDirectories = true;
|
|
|
|
templates = null;
|
|
publicShare = null;
|
|
|
|
desktop = "${homeDirectory}";
|
|
download = if phone then "${homeDirectory}" else "${homeDirectory}/ダウンロード";
|
|
documents = if phone then "${homeDirectory}" else "${homeDirectory}/ドキュメント";
|
|
music = if phone then "${homeDirectory}" else "${homeDirectory}/音楽";
|
|
pictures = if phone then "${homeDirectory}" else "${homeDirectory}/画像";
|
|
videos = if phone then "${homeDirectory}" else "${homeDirectory}/ビデオ";
|
|
};
|
|
|
|
configFile."user-dirs.locale".text = "ja_JP";
|
|
};
|
|
}
|