home-manager/tests/modules/targets/generic-linux.nix
2020-04-08 13:36:25 +02:00

23 lines
476 B
Nix

{ config, lib, pkgs, ... }:
with lib;
{
config = {
home.homeDirectory = "/homeless-shelter";
targets.genericLinux.enable = true;
nmt.script = ''
assertFileExists home-path/etc/profile.d/hm-session-vars.sh
assertFileContent \
home-path/etc/profile.d/hm-session-vars.sh \
${
pkgs.substituteAll {
src = ./generic-linux-session-vars-expected.txt;
nix = pkgs.nix;
}
}
'';
};
}