mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
tests/hyprshot: add tests
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
parent
9f2912e3a6
commit
5b45dcf479
2 changed files with 18 additions and 0 deletions
13
tests/modules/programs/hyprshot/basic-configuration.nix
Normal file
13
tests/modules/programs/hyprshot/basic-configuration.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
{
|
||||||
|
config = {
|
||||||
|
programs.hyprshot = {
|
||||||
|
enable = true;
|
||||||
|
saveLocation = "dummy";
|
||||||
|
};
|
||||||
|
|
||||||
|
nmt.script = ''
|
||||||
|
assertFileContains home-path/etc/profile.d/hm-session-vars.sh \
|
||||||
|
'export HYPRSHOT_DIR="dummy"'
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
||||||
5
tests/modules/programs/hyprshot/default.nix
Normal file
5
tests/modules/programs/hyprshot/default.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
{ lib, pkgs, ... }:
|
||||||
|
|
||||||
|
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
|
||||||
|
hyprshot-basic-configuration = ./basic-configuration.nix;
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue