From 3a8339638f71d0f37cc06f24d92365632e02a946 Mon Sep 17 00:00:00 2001 From: dadada Date: Wed, 23 Feb 2022 18:43:24 +0100 Subject: [PATCH] Fixed android studio startup --- home/home/pkgs.nix | 1 + nixos/gorgon/configuration.nix | 29 ++++++++++++++++++++++++++++- 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/home/home/pkgs.nix b/home/home/pkgs.nix index 1521db5..b5082a3 100644 --- a/home/home/pkgs.nix +++ b/home/home/pkgs.nix @@ -1,6 +1,7 @@ { pkgs }: with pkgs; [ ag + androidStudioPackages.stable anki aspell aspellDicts.de diff --git a/nixos/gorgon/configuration.nix b/nixos/gorgon/configuration.nix index ef83274..3f9d57e 100644 --- a/nixos/gorgon/configuration.nix +++ b/nixos/gorgon/configuration.nix @@ -21,7 +21,7 @@ in post-build-hook = ${signHook} ''; - boot.kernelPackages = pkgs.linuxPackages_latest; + boot.kernelPackages = pkgs.linuxPackages_5_15; boot.kernelModules = [ "kvm-amd" ]; @@ -133,6 +133,33 @@ in ]; }; + #networking.wireguard.interfaces.mullvad = { + # ips = [ "10.68.15.202/32" "fc00:bbbb:bbbb:bb01::5:fc9/128" ]; + # privateKeyFile = "/var/lib/wireguard/mullvad"; + # peers = [ + # { + # publicKey = "BLNHNoGO88LjV/wDBa7CUUwUzPq/fO2UwcGLy56hKy4="; + # allowedIPs = [ "0.0.0.0/0" "::0/0" ]; + # endpoint = "193.27.14.98:3152"; + # persistentKeepalive = 25; + # } + # ]; + #}; + + networking.wg-quick.interfaces.mullvad = { + address = [ "10.68.15.202/32" "fc00:bbbb:bbbb:bb01::5:fc9/128" ]; + privateKeyFile = "/var/lib/wireguard/mullvad"; + peers = [ + { + publicKey = "BLNHNoGO88LjV/wDBa7CUUwUzPq/fO2UwcGLy56hKy4="; + allowedIPs = [ "0.0.0.0/0" "::0/0" ]; + endpoint = "193.27.14.98:3152"; + persistentKeepalive = 25; + } + ]; + postUp = "${pkgs.iproute2}/bin/ip rule add to 193.27.14.98 lookup main"; + }; + hardware.opengl = { enable = true; extraPackages = with pkgs; [