nixos-config/config/env.nix

17 lines
286 B
Nix
Raw Permalink Normal View History

2022-08-25 15:44:57 +00:00
{
config,
pkgs,
lib,
...
}: {
environment.extraInit = let
systemdBin = lib.getBin config.systemd.package;
in ''
set -a
. /dev/fd/0 <<EOF
$(${systemdBin}/lib/systemd/user-environment-generators/30-systemd-environment-d-generator)
EOF
set +a
'';
2022-08-14 18:52:12 +00:00
}