parent
560050a801
commit
0fda8d240b
@ -0,0 +1,8 @@
|
||||
{ config, ... }:
|
||||
|
||||
{
|
||||
services.pass-secret-service = {
|
||||
enable = true;
|
||||
storePath = "${config.xdg.dataHome}/password-store";
|
||||
};
|
||||
}
|
||||
@ -0,0 +1,42 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
let
|
||||
json = pkgs.formats.json {};
|
||||
pw_rnnoise_config = {
|
||||
"context.modules"= [
|
||||
{ "name" = "libpipewire-module-filter-chain";
|
||||
"args" = {
|
||||
"node.description" = "Noise Canceling source";
|
||||
"media.name" = "Noise Canceling source";
|
||||
"filter.graph" = {
|
||||
"nodes" = [
|
||||
{
|
||||
"type" = "ladspa";
|
||||
"name" = "rnnoise";
|
||||
"plugin" = "${pkgs.rnnoise-plugin}/lib/ladspa/librnnoise_ladspa.so";
|
||||
"label" = "noise_suppressor_stereo";
|
||||
"control" = {
|
||||
"VAD Threshold (%)" = 50.0;
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
"audio.position" = [ "FL" "FR" ];
|
||||
"capture.props" = {
|
||||
"node.name" = "effect_input.rnnoise";
|
||||
"node.passive" = true;
|
||||
};
|
||||
"playback.props" = {
|
||||
"node.name" = "effect_output.rnnoise";
|
||||
"media.class" = "Audio/Source";
|
||||
};
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
in
|
||||
{
|
||||
environment.etc."pipewire/pipewire.conf.d/99-input-denoising.conf" = {
|
||||
source = json.generate "99-input-denoising.conf" pw_rnnoise_config;
|
||||
};
|
||||
}
|
||||
@ -1,11 +1,13 @@
|
||||
{ config, username, ... }:
|
||||
{ config, ... }:
|
||||
|
||||
{
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
settings.permitRootLogin = "no";
|
||||
settings.passwordAuthentication = false;
|
||||
settings = {
|
||||
PermitRootLogin = "no";
|
||||
PasswordAuthentication = false;
|
||||
KbdInteractiveAuthentication = false;
|
||||
};
|
||||
};
|
||||
programs.ssh.hostKeyAlgorithms = [ "sk-ssh-ed25519@openssh.com" "ssh-ed25519" ];
|
||||
users.users.${username}.openssh.authorizedKeys.keyFiles = [ ../../maddie/common/ssh/id_ed25519_sk.pub ];
|
||||
}
|
||||
|
||||
Loading…
Reference in new issue