host: Use nixos-hardware
- Remove iptsd. It is packaged upstream
This commit is contained in:
@@ -112,6 +112,96 @@ in {
|
||||
jack.enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
/*
|
||||
config.pipewire = {
|
||||
"context.modules" = [
|
||||
{
|
||||
name = "libpipewire-module-rtkit";
|
||||
args = {};
|
||||
flags = [ "ifexists" "nofail" ];
|
||||
}
|
||||
{ name = "libpipewire-module-protocol-native"; }
|
||||
{ name = "libpipewire-module-client-node"; }
|
||||
{ name = "libpipewire-module-adapter"; }
|
||||
{ name = "libpipewire-module-metadata"; }
|
||||
|
||||
{
|
||||
name = "libpipewire-module-filter-chain";
|
||||
args = {
|
||||
"node.name" = "effect_output.virtual-surround-7.1-hesuvi";
|
||||
"node.description" = "Virtual Surround Sink";
|
||||
"media.name" = "Virtual Surround Sink";
|
||||
"filter.graph" = {
|
||||
nodes = [
|
||||
{ type = "builtin"; label = "copy"; name = "copyFL"; }
|
||||
{ type = "builtin"; label = "copy"; name = "copyFR"; }
|
||||
{ type = "builtin"; label = "copy"; name = "copyFC"; }
|
||||
{ type = "builtin"; label = "copy"; name = "copyRL"; }
|
||||
{ type = "builtin"; label = "copy"; name = "copyRR"; }
|
||||
{ type = "builtin"; label = "copy"; name = "copySL"; }
|
||||
{ type = "builtin"; label = "copy"; name = "copySR"; }
|
||||
{ type = "builtin"; label = "copy"; name = "copyLFE"; }
|
||||
|
||||
{ type = "builtin"; label = "convolver"; name = "convFL_L"; config = { filename = "hrir_hesuvi/hrir.wav"; channel = 0; }; }
|
||||
{ type = "builtin"; label = "convolver"; name = "convFL_R"; config = { filename = "hrir_hesuvi/hrir.wav"; channel = 1; }; }
|
||||
{ type = "builtin"; label = "convolver"; name = "convSL_L"; config = { filename = "hrir_hesuvi/hrir.wav"; channel = 2; }; }
|
||||
{ type = "builtin"; label = "convolver"; name = "convSL_R"; config = { filename = "hrir_hesuvi/hrir.wav"; channel = 3; }; }
|
||||
{ type = "builtin"; label = "convolver"; name = "convRL_L"; config = { filename = "hrir_hesuvi/hrir.wav"; channel = 4; }; }
|
||||
{ type = "builtin"; label = "convolver"; name = "convRL_R"; config = { filename = "hrir_hesuvi/hrir.wav"; channel = 5; }; }
|
||||
{ type = "builtin"; label = "convolver"; name = "convFC_L"; config = { filename = "hrir_hesuvi/hrir.wav"; channel = 6; }; }
|
||||
{ type = "builtin"; label = "convolver"; name = "convFR_R"; config = { filename = "hrir_hesuvi/hrir.wav"; channel = 7; }; }
|
||||
{ type = "builtin"; label = "convolver"; name = "convFR_L"; config = { filename = "hrir_hesuvi/hrir.wav"; channel = 8; }; }
|
||||
{ type = "builtin"; label = "convolver"; name = "convSR_R"; config = { filename = "hrir_hesuvi/hrir.wav"; channel = 9; }; }
|
||||
{ type = "builtin"; label = "convolver"; name = "convSR_L"; config = { filename = "hrir_hesuvi/hrir.wav"; channel = 10; }; }
|
||||
{ type = "builtin"; label = "convolver"; name = "convRR_R"; config = { filename = "hrir_hesuvi/hrir.wav"; channel = 11; }; }
|
||||
{ type = "builtin"; label = "convolver"; name = "convRR_L"; config = { filename = "hrir_hesuvi/hrir.wav"; channel = 12; }; }
|
||||
{ type = "builtin"; label = "convolver"; name = "convFC_R"; config = { filename = "hrir_hesuvi/hrir.wav"; channel = 13; }; }
|
||||
|
||||
{ type = "builtin"; label = "convolver"; name = "convLFE_L"; config = { filename = "hrir_hesuvi/hrir.wav"; channel = 6; }; }
|
||||
{ type = "builtin"; label = "convolver"; name = "convLFE_R"; config = { filename = "hrir_hesuvi/hrir.wav"; channel = 13; }; }
|
||||
|
||||
{ type = "builtin"; label = "mixer"; name = "mixL"; }
|
||||
{ type = "builtin"; label = "mixer"; name = "mixR"; }
|
||||
];
|
||||
links = let
|
||||
linkInput = channel: [
|
||||
{ output = "copy${channel}:Out"; input = "conv${channel}_L:In"; }
|
||||
{ output = "copy${channel}:Out"; input = "conv${channel}_R:In"; }
|
||||
];
|
||||
linkOutput = channel: n: [
|
||||
{ output = "conv${channel}_L:Out"; input = "mix_L:In ${builtins.toString n}"; }
|
||||
{ output = "conv${channel}_R:Out"; input = "mix_R:In ${builtins.toString n}"; }
|
||||
];
|
||||
in (builtins.concatMap (channel: linkInput channel) [ "FL" "SL" "RL" "FC" "FR" "SR" "RR" "LFE" ])
|
||||
++ [
|
||||
(linkOutput "FL" 1)
|
||||
(linkOutput "SL" 2)
|
||||
(linkOutput "RL" 3)
|
||||
(linkOutput "FC" 4)
|
||||
(linkOutput "FR" 5)
|
||||
(linkOutput "SR" 6)
|
||||
(linkOutput "RR" 7)
|
||||
(linkOutput "LFE" 8)
|
||||
];
|
||||
inputs = builtins.map (channel: "copy${channel}:In") [ "FL" "SL" "RL" "FC" "FR" "SR" "RR" "LFE" ];
|
||||
outputs = [ "mixL:Out" "mixR:Out" ];
|
||||
};
|
||||
|
||||
"capture.props" = {
|
||||
"media.class" = "Audio/Sink";
|
||||
"audio.channels" = 8;
|
||||
"audio.position" = [ "FL" "FR" "FC" "LFE" "RL" "RR" "SL" "SR" ];
|
||||
};
|
||||
"playback.props" = {
|
||||
"node.passive" = true;
|
||||
"audio.channels" = 2;
|
||||
"audio.positions" = [ "FL" "FR" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
*/
|
||||
};
|
||||
|
||||
# On desktop: Monitor keyboards, mice, ...
|
||||
@@ -171,6 +261,7 @@ in {
|
||||
};
|
||||
|
||||
boot = {
|
||||
cleanTmpDir = true;
|
||||
loader = {
|
||||
systemd-boot.enable = true;
|
||||
efi.canTouchEfiVariables = true;
|
||||
|
||||
Reference in New Issue
Block a user