diff --git a/home-manager/zsh.nix b/home-manager/zsh.nix index 3f10858..401bd43 100644 --- a/home-manager/zsh.nix +++ b/home-manager/zsh.nix @@ -7,6 +7,7 @@ shellAliases = { ll = "ls -l"; update = "sudo nixos-rebuild switch"; + updateOffline = "sudo nixos-rebuild switch --option substitute false"; }; oh-my-zsh = { enable = true; diff --git a/modules/cursed-ssh-conf-for-3neo.nix b/modules/cursed-ssh-conf-for-3neo.nix new file mode 100644 index 0000000..abca1a0 --- /dev/null +++ b/modules/cursed-ssh-conf-for-3neo.nix @@ -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; +} diff --git a/modules/hardware/nvidia.nix b/modules/hardware/nvidia.nix index 1017c4e..a99cf21 100644 --- a/modules/hardware/nvidia.nix +++ b/modules/hardware/nvidia.nix @@ -23,7 +23,7 @@ # https://github.com/NVIDIA/open-gpu-kernel-modules#compatible-gpus # Only available from driver 515.43.04+ # Currently alpha-quality/buggy, so false is currently the recommended setting. - open = false; + open = true; # Enable the Nvidia settings menu, # accessible via `nvidia-settings`. nvidiaSettings = true;