mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
systemd: add support for session variables
Via environment.d(5).
This commit is contained in:
parent
6ebf14143a
commit
1fdb16866b
4 changed files with 51 additions and 5 deletions
18
tests/modules/systemd/session-variables.nix
Normal file
18
tests/modules/systemd/session-variables.nix
Normal file
|
|
@ -0,0 +1,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}
|
||||
'';
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue