mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
tests/modules/home-manager: init programs.pipewire
This commit is contained in:
parent
a65a0a3982
commit
d7cd5c14c9
@ -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
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
32
tests/modules/home-manager/programs/pipewire/basic.nix
Normal file
32
tests/modules/home-manager/programs/pipewire/basic.nix
Normal 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
|
||||||
|
'';
|
||||||
|
}
|
4
tests/modules/home-manager/programs/pipewire/default.nix
Normal file
4
tests/modules/home-manager/programs/pipewire/default.nix
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
pipewire-basic = ./basic.nix;
|
||||||
|
pipewire-empty = ./empty.nix;
|
||||||
|
}
|
12
tests/modules/home-manager/programs/pipewire/empty.nix
Normal file
12
tests/modules/home-manager/programs/pipewire/empty.nix
Normal 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
|
||||||
|
'';
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user