nixos-config/config/env.nix

14 lines
302 B
Nix
Raw Normal View History

2022-08-14 18:52:12 +00:00
{ config, pkgs, lib, ... }: {
2022-08-14 19:31:57 +00:00
environment.extraInit =
2022-08-14 18:52:12 +00:00
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
'';
}