tests/modules/home-manager: init programs.pipewire

This commit is contained in:
Gabriel Arazas 2024-03-06 20:28:21 +08:00
parent a65a0a3982
commit d7cd5c14c9
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC
4 changed files with 49 additions and 0 deletions

View File

@ -52,6 +52,7 @@ import nmt {
testedAttrPath = [ "home" "activationPackage" ]; testedAttrPath = [ "home" "activationPackage" ];
tests = builtins.foldl' (a: b: a // (import b)) { } [ tests = builtins.foldl' (a: b: a // (import b)) { } [
./programs/neovide ./programs/neovide
./programs/pipewire
./programs/pop-launcher ./programs/pop-launcher
]; ];
} }

View File

@ -0,0 +1,32 @@
{ lib, ... }:
{
programs.pipewire = {
enable = true;
settings = {
hello = "world";
what = true;
oh.wow = "!!!";
};
overrides = {
noisetorch = {
bawk-bawk = true;
reduce-noise-level = 0.5;
};
nvidia-ai-what = {
hawk-hawk = true;
reduce-muffled-sounds = true;
noise-gate = 5.60;
abc = [ "d" "e" "f" ];
};
};
};
test.stubs.pipewire = { };
nmt.script = ''
assertFileExists home-files/.config/pipewire/pipewire.conf
assertFileExists home-files/.config/pipewire/pipewire.conf.d/noisetorch.conf
assertFileExists home-files/.config/pipewire/pipewire.conf.d/nvidia-ai-what.conf
'';
}

View File

@ -0,0 +1,4 @@
{
pipewire-basic = ./basic.nix;
pipewire-empty = ./empty.nix;
}

View File

@ -0,0 +1,12 @@
{ lib, ... }:
{
programs.pipewire.enable = true;
test.stubs.pipewire = { };
nmt.script = ''
assertPathNotExists home-files/.config/pipewire/pipewire.conf
assertPathNotExists home-files/.config/pipewire/pipewire.conf.d
'';
}