mirror of
https://github.com/sadan4/dotfiles.git
synced 2025-06-09 14:03:02 -04:00
262 current 2024-10-02 15:05:19 24.11.20240916.99dc878 6.11.0 *
This commit is contained in:
parent
bf348c1b68
commit
c88a1ca201
3 changed files with 36 additions and 41 deletions
14
common/modules/audio.nix
Normal file
14
common/modules/audio.nix
Normal file
|
@ -0,0 +1,14 @@
|
|||
{...}: {
|
||||
services = {
|
||||
pipewire = {
|
||||
enable = true;
|
||||
alsa = {
|
||||
enable = true;
|
||||
support32Bit = true;
|
||||
};
|
||||
pulse = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
16
common/util.nix
Normal file
16
common/util.nix
Normal 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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue