From c02841491169331ef520b65dd9bcdf660e21fbc0 Mon Sep 17 00:00:00 2001 From: Jet Pham Date: Thu, 6 Nov 2025 18:53:36 -0800 Subject: [PATCH] feat: update packages and add some stuff --- configuration.nix | 14 ++++++++++++++ flake.lock | 30 +++++++++++++++--------------- flake.nix | 18 ++++++++++++++++++ home.nix | 3 +++ 4 files changed, 50 insertions(+), 15 deletions(-) diff --git a/configuration.nix b/configuration.nix index 059375b..0dc9b62 100644 --- a/configuration.nix +++ b/configuration.nix @@ -261,6 +261,20 @@ name = "docker"; }; + # https://wiki.nixos.org/wiki/Appimage#Register_AppImage_files_as_a_binary_type_to_binfmt_misc + programs.appimage = { + enable = true; + binfmt = true; + }; + + # GameCube adapter udev rules for Slippi/Dolphin + services.udev.extraRules = '' + # GameCube adapter USB device (vendor ID 057e, product ID 0337) + SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="057e", ATTRS{idProduct}=="0337", MODE="0666" + # GameCube adapter HID device (needed for Dolphin to access controllers) + KERNEL=="hidraw*", ATTRS{idVendor}=="057e", ATTRS{idProduct}=="0337", MODE="0666", GROUP="input" + ''; + # Open ports in the firewall. # networking.firewall.allowedTCPPorts = [ ... ]; # networking.firewall.allowedUDPPorts = [ ... ]; diff --git a/flake.lock b/flake.lock index d8f970e..2fbf549 100644 --- a/flake.lock +++ b/flake.lock @@ -7,11 +7,11 @@ ] }, "locked": { - "lastModified": 1761666354, - "narHash": "sha256-fHr+tIYBJccNF8QWqgowfRmEAtAMSt1deZIRNKL8A7c=", + "lastModified": 1762463325, + "narHash": "sha256-33YUsWpPyeBZEWrKQ2a1gkRZ7i0XCC/2MYpU6BVeQSU=", "owner": "nix-community", "repo": "home-manager", - "rev": "ca2ab1d877a24d5a437dad62f56b8b2c02e964e9", + "rev": "0562fef070a1027325dd4ea10813d64d2c967b39", "type": "github" }, "original": { @@ -28,11 +28,11 @@ ] }, "locked": { - "lastModified": 1752603129, - "narHash": "sha256-S+wmHhwNQ5Ru689L2Gu8n1OD6s9eU9n9mD827JNR+kw=", + "lastModified": 1762351818, + "narHash": "sha256-0ptUDbYwxv1kk/uzEX4+NJjY2e16MaAhtzAOJ6K0TG0=", "owner": "nix-community", "repo": "home-manager", - "rev": "e8c19a3cec2814c754f031ab3ae7316b64da085b", + "rev": "b959c67241cae17fc9e4ee7eaf13dfa8512477ea", "type": "github" }, "original": { @@ -43,11 +43,11 @@ }, "nixos-hardware": { "locked": { - "lastModified": 1761669189, - "narHash": "sha256-INBZnPA9JzyDn+Fnni2250PbRzKx7Eafz0T2c7NhXiQ=", + "lastModified": 1762463231, + "narHash": "sha256-hv1mG5j5PTbnWbtHHomzTus77pIxsc4x8VrMjc7+/YE=", "owner": "NixOS", "repo": "nixos-hardware", - "rev": "9c0ee5dfa186e10efe9b53505b65d22c81860fde", + "rev": "52113c4f5cfd1e823001310e56d9c8d0699a6226", "type": "github" }, "original": { @@ -58,11 +58,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1761373498, - "narHash": "sha256-Q/uhWNvd7V7k1H1ZPMy/vkx3F8C13ZcdrKjO7Jv7v0c=", + "lastModified": 1762363567, + "narHash": "sha256-YRqMDEtSMbitIMj+JLpheSz0pwEr0Rmy5mC7myl17xs=", "owner": "nixos", "repo": "nixpkgs", - "rev": "6a08e6bb4e46ff7fcbb53d409b253f6bad8a28ce", + "rev": "ae814fd3904b621d8ab97418f1d0f2eb0d3716f4", "type": "github" }, "original": { @@ -88,11 +88,11 @@ ] }, "locked": { - "lastModified": 1761535208, - "narHash": "sha256-E1PobJMiFmVUX2YdqYk/MpKb0LXavOYvlg8DCBBzlHc=", + "lastModified": 1762482908, + "narHash": "sha256-/Bsw5brCo8gbV5rgK2+SVMrVFasnE5LgJLZertAxdsc=", "owner": "0xc000022070", "repo": "zen-browser-flake", - "rev": "79a94872a3e6993a051c4e22a2dcb02c1d088acf", + "rev": "45b88a529bd410aeba3d28f8396901d57f8b32d4", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index 5a8ea8f..db2f66d 100644 --- a/flake.nix +++ b/flake.nix @@ -32,6 +32,24 @@ home-manager.extraSpecialArgs = { inherit inputs; }; home-manager.users.jet = import ./home.nix; } + { + nixpkgs.overlays = [ + (final: prev: { + code-cursor = prev.code-cursor.overrideAttrs (oldAttrs: rec { + pname = "cursor"; + version = "2.0.64"; + src = prev.appimageTools.extract { + inherit pname version; + src = prev.fetchurl { + url = "https://downloads.cursor.com/production/25412918da7e74b2686b25d62da1f01cfcd27683/linux/x64/Cursor-2.0.64-x86_64.AppImage"; + hash = "sha256-zT9GhdwGDWZJQl+WpV2txbmp3/tJRtL6ds1UZQoKNzA="; + }; + }; + sourceRoot = "${pname}-${version}-extracted/usr/share/cursor"; + }); + }) + ]; + } ]; }; }; diff --git a/home.nix b/home.nix index f18bb8e..896be6a 100644 --- a/home.nix +++ b/home.nix @@ -79,6 +79,9 @@ element-desktop font-manager handbrake + libreoffice-qt + steam + appimage-run ];