aboutsummaryrefslogtreecommitdiff
path: root/home-manager/tests/modules/systemd/session-variables.nix
blob: 7cfb4a6c7c310585eba35c41a86f40ade01ff1de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ config, lib, pkgs, ... }:

with lib;

{
  config = {
    systemd.user.sessionVariables = {
      V_int = 1;
      V_str = "2";
    };

    nmt.script = ''
      local envFile=home-files/.config/environment.d/10-home-manager.conf
      assertFileExists $envFile
      assertFileContent $envFile ${./session-variables-expected.conf}
    '';
  };
}