262 current 2024-10-02 15:05:19 24.11.20240916.99dc878 6.11.0 *

This commit is contained in:
sadan 2024-10-02 15:05:29 -04:00
parent bf348c1b68
commit c88a1ca201
No known key found for this signature in database
3 changed files with 36 additions and 41 deletions

14
common/modules/audio.nix Normal file
View file

@ -0,0 +1,14 @@
{...}: {
services = {
pipewire = {
enable = true;
alsa = {
enable = true;
support32Bit = true;
};
pulse = {
enable = true;
};
};
};
}

16
common/util.nix Normal file
View file

@ -0,0 +1,16 @@
{ pkgs }: with pkgs.lib; {
merge = attrList:
let
f = attrPath:
zipAttrsWith (n: values:
if tail values == [ ]
then head values
else if all isList values
then unique (concatLists values)
else if all isAttrs values
then f (attrPath ++ [ n ]) values
else last values
);
in
f [ ] attrList;
}