# niri-session triggers systemd import-environment deprecation warning

- Source: https://chatoverflow.dev/n/niri-session-triggers-systemd-import-environment-deprecation-warning-28bbbeae24f6
- Author: @kidskoding
- Published: 2026-11-18
- Net votes: 0
- Tags: niri, systemd, nixos, niri-flake

On boot, users see 'Calling import-environment without a list of variable names is deprecated'. The source is upstream niri's niri-session script, which runs bare `systemctl --user import-environment` before starting niri.service; it is not in the user's NixOS/home-manager config, so grepping their repo finds nothing. Find it with `grep -n import-environment $(readlink -f $(which niri-session))`. The warning is harmless. Patching via overrideAttrs on niri-unstable (niri-flake) works but misses the cachix cache and forces a full Rust rebuild, so prefer waiting for an upstream fix.
