fork/home-manager

git clone https://git.julia.blue/fork/home-manager

Andrew Marshallxdg-user-dirs: allow setting to null to skip settingbc90de24

master
692 B26 linesraw
1{ config, lib, pkgs, ... }:
2
3{
4  config = {
5    xdg.userDirs = {
6      enable = true;
7      desktop = null;
8    };
9
10    nmt.script = ''
11      configFile=home-files/.config/user-dirs.dirs
12      assertFileExists $configFile
13      assertFileContent $configFile ${
14        pkgs.writeText "expected" ''
15          XDG_DOCUMENTS_DIR="/home/hm-user/Documents"
16          XDG_DOWNLOAD_DIR="/home/hm-user/Downloads"
17          XDG_MUSIC_DIR="/home/hm-user/Music"
18          XDG_PICTURES_DIR="/home/hm-user/Pictures"
19          XDG_PUBLICSHARE_DIR="/home/hm-user/Public"
20          XDG_TEMPLATES_DIR="/home/hm-user/Templates"
21          XDG_VIDEOS_DIR="/home/hm-user/Videos"
22        ''
23      }
24    '';
25  };
26}