mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 16:57:55 +00:00
37 lines
1.0 KiB
Nix
37 lines
1.0 KiB
Nix
{ pkgs, ... }:
|
|
|
|
{
|
|
programs.pop-launcher = {
|
|
enable = true;
|
|
plugins = with pkgs; [
|
|
pop-launcher-plugin-duckduckgo-bangs
|
|
pop-launcher-plugin-brightness
|
|
];
|
|
};
|
|
|
|
test.stubs = {
|
|
pop-launcher = { };
|
|
pop-launcher-plugin-duckduckgo-bangs = {
|
|
outPath = null;
|
|
buildScript = ''
|
|
mkdir -p $out/share/pop-launcher/{scripts,plugins/bangs}
|
|
echo "hello" | tee "$out/share/pop-launcher/plugins/bangs/bangs"
|
|
echo "WHOA" | tee "$out/share/pop-launcher/scripts/whoa"
|
|
'';
|
|
};
|
|
pop-launcher-plugin-brightness = {
|
|
outPath = null;
|
|
buildScript = ''
|
|
mkdir -p "$out/share/pop-launcher/plugins/brightness"
|
|
echo "world" | tee "$out/share/pop-launcher/plugins/brightness/brightness"
|
|
'';
|
|
};
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.local/share/pop-launcher/plugins/bangs/bangs
|
|
assertFileExists home-files/.local/share/pop-launcher/scripts/whoa
|
|
assertFileExists home-files/.local/share/pop-launcher/plugins/brightness/brightness
|
|
'';
|
|
}
|