diff --git a/tests/modules/programs/hyprshot/basic-configuration.nix b/tests/modules/programs/hyprshot/basic-configuration.nix new file mode 100644 index 000000000..c0521998c --- /dev/null +++ b/tests/modules/programs/hyprshot/basic-configuration.nix @@ -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"' + ''; + }; +} diff --git a/tests/modules/programs/hyprshot/default.nix b/tests/modules/programs/hyprshot/default.nix new file mode 100644 index 000000000..8d043afbb --- /dev/null +++ b/tests/modules/programs/hyprshot/default.nix @@ -0,0 +1,5 @@ +{ lib, pkgs, ... }: + +lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux { + hyprshot-basic-configuration = ./basic-configuration.nix; +}