mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-13 04:21:08 +01:00
parent
dd538c2969
commit
d06bcf4c97
7 changed files with 87 additions and 0 deletions
23
tests/modules/targets/generic-linux.nix
Normal file
23
tests/modules/targets/generic-linux.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{ 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;
|
||||
}
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue