2020-04-05 14:46:55 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
config = {
|
2020-09-09 19:53:21 +00:00
|
|
|
targets.genericLinux = {
|
|
|
|
enable = true;
|
|
|
|
extraXdgDataDirs = [ "/foo" ];
|
|
|
|
};
|
2020-04-05 14:46:55 +00:00
|
|
|
|
|
|
|
nmt.script = ''
|
|
|
|
assertFileExists home-path/etc/profile.d/hm-session-vars.sh
|
2020-04-24 19:41:22 +00:00
|
|
|
assertFileContains \
|
|
|
|
home-path/etc/profile.d/hm-session-vars.sh \
|
2020-09-09 19:53:21 +00:00
|
|
|
'export XDG_DATA_DIRS="''${NIX_STATE_DIR:-/nix/var/nix}/profiles/default/share:/home/hm-user/.nix-profile/share:/foo''${XDG_DATA_DIRS:+:}$XDG_DATA_DIRS"'
|
2020-04-24 19:41:22 +00:00
|
|
|
assertFileContains \
|
2020-04-05 14:46:55 +00:00
|
|
|
home-path/etc/profile.d/hm-session-vars.sh \
|
2020-04-24 19:41:22 +00:00
|
|
|
'. "${pkgs.nix}/etc/profile.d/nix.sh"'
|
2020-04-05 14:46:55 +00:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|