feat(xdg): add persistence and configure paths
The default xdg directories are noisy and unhelpful.
This commit is contained in:
parent
1f0d44389b
commit
ae9d676e3d
21
home/xdg/home.nix
Normal file
21
home/xdg/home.nix
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
{ config
|
||||||
|
, ... }: {
|
||||||
|
xdg = {
|
||||||
|
enable = true;
|
||||||
|
userDirs = let
|
||||||
|
home = config.home.homeDirectory;
|
||||||
|
local = "${home}/local";
|
||||||
|
in {
|
||||||
|
enable = true;
|
||||||
|
createDirectories = true;
|
||||||
|
download = "${home}/dl";
|
||||||
|
desktop = "${local}/desktop";
|
||||||
|
documents = "${local}/documents";
|
||||||
|
music = "${local}/music";
|
||||||
|
pictures = "${local}/pictures";
|
||||||
|
publicShare = "${local}/public";
|
||||||
|
templates = "${local}/templates";
|
||||||
|
videos = "${local}/videos";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
3
home/xdg/nixos.nix
Normal file
3
home/xdg/nixos.nix
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
users.home.persist.directories = [ "local" "dl" ];
|
||||||
|
}
|
Loading…
Reference in a new issue