use open nvidia package, and ssh config for setting up openwrt

This commit is contained in:
Kopatz
2023-12-14 17:47:31 +01:00
parent 24a1fba710
commit 2c8f70f436
3 changed files with 42 additions and 1 deletions

View File

@@ -7,6 +7,7 @@
shellAliases = { shellAliases = {
ll = "ls -l"; ll = "ls -l";
update = "sudo nixos-rebuild switch"; update = "sudo nixos-rebuild switch";
updateOffline = "sudo nixos-rebuild switch --option substitute false";
}; };
oh-my-zsh = { oh-my-zsh = {
enable = true; enable = true;

View File

@@ -0,0 +1,40 @@
{
services.openssh.enable = true;
services.openssh.extraConfig = ''
HostKeyAlgorithms +ssh-rsa
PubkeyAcceptedAlgorithms +ssh-rsa
'';
services.openssh.settings.Macs = [
"hmac-md5"
];
services.openssh.settings.Ciphers = [
"3des-cbc"
"aes128-cbc"
"aes192-cbc"
"aes256-cbc"
"aes128-ctr"
"aes192-ctr"
"aes256-ctr"
"aes128-gcm@openssh.com"
"aes256-gcm@openssh.com"
"chacha20-poly1305@openssh.com"
];
services.openssh.settings.KexAlgorithms = [
"diffie-hellman-group1-sha1"
"diffie-hellman-group14-sha1"
"diffie-hellman-group14-sha256"
"diffie-hellman-group16-sha512"
"diffie-hellman-group18-sha512"
"diffie-hellman-group-exchange-sha1"
"diffie-hellman-group-exchange-sha256"
"ecdh-sha2-nistp256"
"ecdh-sha2-nistp384"
"ecdh-sha2-nistp521"
"curve25519-sha256"
"curve25519-sha256@libssh.org"
"sntrup761x25519-sha512@openssh.com"
];
services.atftpd.enable = true;
}

View File

@@ -23,7 +23,7 @@
# https://github.com/NVIDIA/open-gpu-kernel-modules#compatible-gpus # https://github.com/NVIDIA/open-gpu-kernel-modules#compatible-gpus
# Only available from driver 515.43.04+ # Only available from driver 515.43.04+
# Currently alpha-quality/buggy, so false is currently the recommended setting. # Currently alpha-quality/buggy, so false is currently the recommended setting.
open = false; open = true;
# Enable the Nvidia settings menu, # Enable the Nvidia settings menu,
# accessible via `nvidia-settings`. # accessible via `nvidia-settings`.
nvidiaSettings = true; nvidiaSettings = true;