diff --git a/evelyne/common/shell.nix b/evelyne/common/shell.nix index 5543933..64e5d91 100644 --- a/evelyne/common/shell.nix +++ b/evelyne/common/shell.nix @@ -18,7 +18,7 @@ ka = "killall"; xw = "xwallpaper"; nf = "neofetch"; - tf = "pridefetch -f trans"; + gf = "pridefetch -f genderfluid"; pf = "pfetch"; i = "inertia"; @@ -29,6 +29,7 @@ sx = "startx ~/.config/x11/xinitrc"; sdn = "doas shutdown -h now"; kys = "kill $(pidof '$@')"; + nheko = "systemctl restart --user pass-secret-service.service && nheko"; # Nix system shortucts nix-system-update = "nix flake update $NIXFILES && doas nixos-rebuild switch --flake $NIXFILES"; diff --git a/evelyne/common/ssh/maddie.pub b/evelyne/common/ssh/maddie.pub new file mode 100644 index 0000000..39cc2d1 --- /dev/null +++ b/evelyne/common/ssh/maddie.pub @@ -0,0 +1 @@ +sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIA1jTkcMhBQQoYqNVLofrNnTbB8RCyzSYmdsnPeoOineAAAABHNzaDo= spy@luna (yubikey) diff --git a/evelyne/common/zsh.nix b/evelyne/common/zsh.nix index 434cbae..2577ff2 100644 --- a/evelyne/common/zsh.nix +++ b/evelyne/common/zsh.nix @@ -97,9 +97,9 @@ # Prompt character character = { - success_symbol = "-> [λ](bold purple)"; - error_symbol = "-> [λ](bold red)"; - vimcmd_symbol = "-> [λ](bold green)"; + success_symbol = "-> [](bold purple)"; + error_symbol = "-> [](bold red)"; + vimcmd_symbol = "-> [](bold green)"; }; # When in a deep directory or git repo diff --git a/systems/pogmachine/noise-suppression.nix b/systems/pogmachine/noise-suppression.nix new file mode 100644 index 0000000..9c3bdc5 --- /dev/null +++ b/systems/pogmachine/noise-suppression.nix @@ -0,0 +1,46 @@ +{ 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.systemPackages = with pkgs; [ + rnnoise + rnnoise-plugin + ]; + environment.etc."pipewire/pipewire.conf.d/99-input-denoising.conf" = { + source = json.generate "99-input-denoising.conf" pw_rnnoise_config; + }; +} diff --git a/systems/pogmachine/users.nix b/systems/pogmachine/users.nix index 603dd3b..b0fa009 100644 --- a/systems/pogmachine/users.nix +++ b/systems/pogmachine/users.nix @@ -6,6 +6,6 @@ shell = pkgs.zsh; description = "Evelyne"; extraGroups = [ "adbusers" "dialout" "libvirtd" "plugdev" ]; - openssh.authorizedKeys.keyFiles = [ ../../evelyne/common/ssh/id_ed25519.pub ]; + openssh.authorizedKeys.keyFiles = [ ../../evelyne/common/ssh/id_ed25519.pub ../../evelyne/common/ssh/maddie.pub ]; }; }