home(xdg): add persistence and configure paths
This commit is contained in:
parent
6e588bca61
commit
fbdb223c1c
2 changed files with 24 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue