mirror of
https://github.com/nix-community/home-manager
synced 2024-11-05 10:49:44 +01:00
d3aee544b6
Currently, this module makes sure that `/Applications` directories for packages in `home.packages` get linked into the user's environment.
19 lines
561 B
Nix
19 lines
561 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
config = {
|
|
targets.genericLinux.enable = true;
|
|
|
|
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''${XDG_DATA_DIRS:+:}$XDG_DATA_DIRS"'
|
|
assertFileContains \
|
|
home-path/etc/profile.d/hm-session-vars.sh \
|
|
'. "${pkgs.nix}/etc/profile.d/nix.sh"'
|
|
'';
|
|
};
|
|
}
|