fixes, updates, etc.

This commit is contained in:
Maddie H 2023-04-09 13:47:03 +01:00
parent 560050a801
commit 0fda8d240b
Signed by: maddie
GPG Key ID: C296DE8C9053683F
11 changed files with 73 additions and 23 deletions

View File

@ -28,11 +28,11 @@
"utils": "utils"
},
"locked": {
"lastModified": 1679480702,
"narHash": "sha256-npuRD61YmxUPitI1TqKwlxLrU6iGl5E+BPT196LgUDo=",
"lastModified": 1680389554,
"narHash": "sha256-+8FUmS4GbDMynQErZGXKg+wU76rq6mI5fprxFXFWKSM=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "363c46b2480f1b73ec37cf68caac61f5daa82a2e",
"rev": "ddd8866c0306c48f465e7f48432e6f1ecd1da7f8",
"type": "github"
},
"original": {
@ -43,11 +43,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1679614379,
"narHash": "sha256-2KddLHHmcIlJu0PuS/vISLKxihTyICUwKWGn0R//028=",
"lastModified": 1680487167,
"narHash": "sha256-9FNIqrxDZgSliGGN2XJJSvcDYmQbgOANaZA4UWnTdg4=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "994e2ef9e9c70b4dd7257f73452a94e871723685",
"rev": "53dad94e874c9586e71decf82d972dfb640ef044",
"type": "github"
},
"original": {

View File

@ -9,6 +9,7 @@
"--time-style=long-iso"
"--git"
"-h"
"-g"
];
icons = true;
};

View File

@ -6,5 +6,6 @@
signal-desktop # Signal client
discord-canary # Discord client
ripcord # Better discord client
nheko # Better matrix client
];
}

8
maddie/nixos/secrets.nix Normal file
View File

@ -0,0 +1,8 @@
{ config, ... }:
{
services.pass-secret-service = {
enable = true;
storePath = "${config.xdg.dataHome}/password-store";
};
}

View File

@ -21,8 +21,8 @@
home.pointerCursor = {
gtk.enable = true;
x11.enable = true;
package = pkgs.phinger-cursors;
name = "phinger-cursors";
package = pkgs.apple-cursor;
name = "macOS-BigSur";
size = 24;
};
@ -57,7 +57,7 @@
${pkgs.xorg.setxkbmap}/bin/setxkbmap -layout gb --option caps:escape
# Start the window manager
${pkgs.openssh}/bin/ssh-agent ${pkgs.dbus}/bin/dbus-run-session ${pkgs.dwm}/bin/dwm
${pkgs.openssh}/bin/ssh-agent ${pkgs.dwm}/bin/dwm
'';
xresources.properties = {

View File

@ -38,8 +38,8 @@
src = final.fetchFromGitHub {
owner = "SpyHoodle";
repo = "slock";
rev = "e71c4ac0106a438abb5acf4ae89b8518a9bf3682";
sha256 = "sha256-7ZeARKljyQSHPoFb+6p50uIr2q5VOqE/XSELqurNMBw=";
rev = "8c5d321b641961237f747d3e68f52b163d673634";
sha256 = "sha256-y+6VU3jXbUOyhUcyPC7CDGjyWLSJcCkhYiHscVib7j4=";
};
buildInputs = oldAttrs.buildInputs ++ [ final.xorg.libXpm ];
});
@ -56,7 +56,7 @@
clockSupport = false;
};
nerdfonts = prev.nerdfonts.override {
fonts = [ "Iosevka" "Terminus" "JetBrainsMono" ];
fonts = [ "Iosevka" "JetBrainsMono" "Terminus" ];
};
})
]

View File

@ -2,16 +2,10 @@
{
fonts.fonts = with pkgs; [
terminus-nerdfont
fira-code
fira-code-symbols
dina-font
iosevka
jetbrains-mono
nerdfonts
font-awesome
source-han-sans
source-han-serif
source-han-code-jp
nerdfonts
];
}

View File

@ -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;
};
}

View File

@ -32,6 +32,7 @@
p7zip
# Cli tools
ripgrep
wget
fzf
bat

View File

@ -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 ];
}

View File

@ -6,5 +6,6 @@
shell = pkgs.zsh;
description = "Madeleine";
extraGroups = [ "adbusers" "dialout" "libvirtd" "plugdev" ];
openssh.authorizedKeys.keyFiles = [ ../../maddie/common/ssh/id_ed25519_sk.pub ];
};
}