From 6684283aff5063345c66d124b3abca7e8350c989 Mon Sep 17 00:00:00 2001 From: SeanOMik Date: Sat, 18 Feb 2023 16:11:34 -0500 Subject: [PATCH] "Push new changed" --- home/seanomik/default.nix | 20 +++++++++++++++++++- home/seanomik/wireguard.nix | 2 +- home/vscode.nix | 8 ++++++++ modules/hardware/nvidia.nix | 3 +++ modules/switch-udev.nix | 3 ++- 5 files changed, 33 insertions(+), 3 deletions(-) diff --git a/home/seanomik/default.nix b/home/seanomik/default.nix index f466aaf..4234d38 100755 --- a/home/seanomik/default.nix +++ b/home/seanomik/default.nix @@ -38,6 +38,20 @@ # Add open-in-vscode button to nemo home = { file.".local/share/nemo/actions/vscode.nemo_action".source = ../vscode.nemo_action; + +# activation = { +# afterWriteBoundary = { +# after = [ "writeBoundary" ]; +# before = [ ]; +# data = '' +# find ~/.vscode/extensions/ | while read -r path +# do +# $DRY_RUN_CMD chmod --recursive +w \ +# "$(readlink --canonicalize "$path")" +# done +# ''; +# }; +# }; }; # home.programs.git = { @@ -60,6 +74,11 @@ # with pkgss; [ (callPackage ../../modules/applications/discord.nix { }) + zip + unzip + rar + + minio-client retroarch openconnect-sso vlc @@ -86,7 +105,6 @@ google-chrome (callPackage ../../modules/pkgs/upwork.nix { inherit runCommandLocal; }) (libsForQt5.callPackage ../../modules/pkgs/jellyfin-media-player.nix { }) -# ytmdesktop (callPackage ../../modules/pkgs/ytmdesktop.nix { }) jetbrains.idea-community renderdoc diff --git a/home/seanomik/wireguard.nix b/home/seanomik/wireguard.nix index cf9ea30..4973a41 100755 --- a/home/seanomik/wireguard.nix +++ b/home/seanomik/wireguard.nix @@ -12,7 +12,7 @@ peers = [ { - publicKey = "KDjqaXNcaWxLvNbOp+pu7TmxjML/uS8pXS5Z+fv7LjM="; + publicKey = "4sXpR5H3Qs7ZtvQW4L899+Tb6Se42pEMYZWdFYWRMDE="; allowedIPs = [ "10.0.0.1/32" ]; endpoint = homeip + ":2751"; persistentKeepalive = 25; diff --git a/home/vscode.nix b/home/vscode.nix index cf425ee..c33dfab 100755 --- a/home/vscode.nix +++ b/home/vscode.nix @@ -1,5 +1,7 @@ { pkgs, ... }: { + + programs.vscode = { enable = true; package = pkgs.vscode; @@ -41,6 +43,12 @@ # version = "0.0.25"; # sha256 = "sha256-CbFZsoRiiwSWL7zJdnBcfrxuhE7E9Au2AlQjqauk+Nc="; # } + { + name = "platformio-ide"; + publisher = "platformio"; + version = "3.0.0"; + sha256 = "sha256-iBc23STY/fqerAIwyEEbRP7L6EJfNBXmpZHidIiMY7g="; + } { name = "github-vscode-theme"; publisher = "GitHub"; diff --git a/modules/hardware/nvidia.nix b/modules/hardware/nvidia.nix index c705d3c..e830e2c 100755 --- a/modules/hardware/nvidia.nix +++ b/modules/hardware/nvidia.nix @@ -4,6 +4,9 @@ services.xserver.videoDrivers = [ "nvidia" ]; + hardware.opengl.enable = true; + hardware.opengl.driSupport32Bit = true; + # This enables vulkan layers # hardware = { # opengl = diff --git a/modules/switch-udev.nix b/modules/switch-udev.nix index 7ca6bc9..2106054 100755 --- a/modules/switch-udev.nix +++ b/modules/switch-udev.nix @@ -1,6 +1,7 @@ {pkgs, ... }: { services.udev.extraRules = '' - SUBSYSTEMS=="usb", ATTRS{manufacturer}=="NVIDIA Corp.", ATTRS{product}=="APX", GROUP="nintendo_switch" + SUBSYSTEM=="usb", ATTRS{idVendor}=="057e", ATTRS{idProduct}=="3000", MODE="0666" + SUBSYSTEM=="usb", ATTRS{idVendor}=="0955", ATTRS{idProduct}=="7321", MODE="0666" ''; }