mirror of
https://github.com/nix-community/home-manager
synced 2024-11-16 08:09:45 +01:00
25 lines
786 B
Nix
25 lines
786 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
config = {
|
|
targets.genericLinux = {
|
|
enable = true;
|
|
extraXdgDataDirs = [ "/foo" ];
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-path/etc/profile.d/hm-session-vars.sh
|
|
assertFileContains \
|
|
home-path/etc/profile.d/hm-session-vars.sh \
|
|
'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"'
|
|
assertFileContains \
|
|
home-path/etc/profile.d/hm-session-vars.sh \
|
|
'. "${pkgs.nix}/etc/profile.d/nix.sh"'
|
|
assertFileContains \
|
|
home-path/etc/profile.d/hm-session-vars.sh \
|
|
'export LOCALE_ARCHIVE_2_27="${pkgs.glibcLocales}/lib/locale/locale-archive"'
|
|
'';
|
|
};
|
|
}
|