mirror of
https://github.com/nix-community/home-manager
synced 2025-02-17 06:28:24 +00:00
23 lines
449 B
Nix
23 lines
449 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
expectedConf = pkgs.substituteAll {
|
|
src = ./session-variables-expected.conf;
|
|
inherit (pkgs) glibcLocales;
|
|
};
|
|
in {
|
|
config = {
|
|
systemd.user.sessionVariables = {
|
|
V_int = 1;
|
|
V_str = "2";
|
|
};
|
|
|
|
nmt.script = ''
|
|
envFile=home-files/.config/environment.d/10-home-manager.conf
|
|
assertFileExists $envFile
|
|
assertFileContent $envFile ${expectedConf}
|
|
'';
|
|
};
|
|
}
|