From 509b52bef018c9ae95d9f2caf4ebd5b692e0c97b Mon Sep 17 00:00:00 2001 From: Amadej Kastelic Date: Fri, 17 May 2024 22:44:27 +0200 Subject: [PATCH] Ledger udev rules --- flake.lock | 169 ++++++++++++++-------------- home/programs/browsers/chromium.nix | 5 +- home/programs/default.nix | 2 +- system/default.nix | 1 + system/hardware/ledger.nix | 7 ++ 5 files changed, 93 insertions(+), 91 deletions(-) create mode 100644 system/hardware/ledger.nix diff --git a/flake.lock b/flake.lock index 15e5835..3857606 100644 --- a/flake.lock +++ b/flake.lock @@ -32,11 +32,11 @@ ] }, "locked": { - "lastModified": 1714991158, - "narHash": "sha256-QRtQD3YqbambczxavUUkRv7iGxoJ1J6e6mD20mZv3a4=", + "lastModified": 1715703984, + "narHash": "sha256-0BZkMui6aCqswMCouvp0G90tAxDOxVnxTvG6TDZsDaI=", "owner": "Aylur", "repo": "ags", - "rev": "05e0f23534fa30c1db2a142664ee8f71e38db260", + "rev": "11150225e62462bcd431d1e55185e810190a730a", "type": "github" }, "original": { @@ -99,11 +99,11 @@ }, "catppuccin": { "locked": { - "lastModified": 1715210854, - "narHash": "sha256-88jxvd+LIP/XwlvJ3+QPbGCFMChmBfIbUNp1mEP9DJY=", + "lastModified": 1715659881, + "narHash": "sha256-emodPGTXLVqlcOkqbJiOUkf5vo8WWujgzKxms1B+iBs=", "owner": "catppuccin", "repo": "nix", - "rev": "e5322f7b4001aa8aab38ca5a0f42cafc590f42b6", + "rev": "d6344610c04af0f8e315fef45dd3b854014b119e", "type": "github" }, "original": { @@ -132,12 +132,12 @@ "yafas": "yafas" }, "locked": { - "lastModified": 1715444903, - "narHash": "sha256-2a0zW0cmX7L/0OZXxLvEZN3/PHgnIZaCsrDcrhcgO6g=", - "rev": "77bf228d69ed917e69a4702421fe3bc00f126c2f", - "revCount": 1125, + "lastModified": 1715965467, + "narHash": "sha256-DMWt9USsLEnW+cOVR2XGbBUHPgjmh3aMLJUfwQyEH64=", + "rev": "e7730480dd888bc029b0e1f2698d2df783a820b1", + "revCount": 1141, "type": "tarball", - "url": "https://api.flakehub.com/f/pinned/chaotic-cx/nyx/0.1.1125%2Brev-77bf228d69ed917e69a4702421fe3bc00f126c2f/018f687f-3472-778a-8ca7-972ebd2ddb67/source.tar.gz" + "url": "https://api.flakehub.com/f/pinned/chaotic-cx/nyx/0.1.1141%2Brev-e7730480dd888bc029b0e1f2698d2df783a820b1/018f87a8-7bba-7716-91fb-19ab24b2aa1f/source.tar.gz" }, "original": { "type": "tarball", @@ -161,11 +161,11 @@ "complement": { "flake": false, "locked": { - "lastModified": 1714472853, - "narHash": "sha256-CNRHSZe3TE+3tFj2dHNyxTMjDqL0MKY3P/3jqUgA7YE=", + "lastModified": 1715700731, + "narHash": "sha256-cie+b5N/TQAFD8vF/XbqfyFJkFU0qUPDbtJQDm/TfQc=", "owner": "matrix-org", "repo": "complement", - "rev": "891d18872c153d39a9ce63b545045efddb845738", + "rev": "8587fb3cbe746754b2c883ff6c818ca4d987d0a5", "type": "github" }, "original": { @@ -209,11 +209,11 @@ "rocksdb": "rocksdb" }, "locked": { - "lastModified": 1715396204, - "narHash": "sha256-IYT/n9vFWOXDergfXe5iOFGTe8TrjI+rYcwQQEWy2iY=", + "lastModified": 1715931745, + "narHash": "sha256-dKdp4HbNp4Y/S8W7Zx8fI0mHsrZHcRuqIvKGgb+MnRc=", "owner": "girlbossceo", "repo": "conduwuit", - "rev": "18e43e1d35c70e71b5fbaf44059f96a0bc4cf49e", + "rev": "6ef4781050c2fa7fd89bcce0bd1f427b8f864a77", "type": "github" }, "original": { @@ -402,11 +402,11 @@ ] }, "locked": { - "lastModified": 1714641030, - "narHash": "sha256-yzcRNDoyVP7+SCNX0wmuDju1NUCt8Dz9+lyUXEI0dbI=", + "lastModified": 1715865404, + "narHash": "sha256-/GJvTdTpuDjNn84j82cU6bXztE0MSkdnTWClUCRub78=", "owner": "hercules-ci", "repo": "flake-parts", - "rev": "e5d10a24b66c3ea8f150e47dfdb0416ab7c3390e", + "rev": "8dc45382d5206bd292f9c2768b8058a8fd8311d9", "type": "github" }, "original": { @@ -616,11 +616,11 @@ "rust-overlay": "rust-overlay_2" }, "locked": { - "lastModified": 1715290987, - "narHash": "sha256-bKBbx2GqZIPYSs4ksJquFt0iJ4GrCtx0ZgTxHI8Zt/4=", + "lastModified": 1715885401, + "narHash": "sha256-Ay87mjRXLGwBtgKW+SdfrsyUlDIygPQksaZXTV9PMSM=", "owner": "helix-editor", "repo": "helix", - "rev": "00e9e5eadef16dd20cd24d303a664faaeb8faa56", + "rev": "2301430e37a98192de7864faa2d8c1b84860f400", "type": "github" }, "original": { @@ -636,11 +636,11 @@ ] }, "locked": { - "lastModified": 1715486357, - "narHash": "sha256-4pRuzsHZOW5W4CsXI9uhKtiJeQSUoe1d2M9mWU98HC4=", + "lastModified": 1715930644, + "narHash": "sha256-W9pyM3/vePxrffHtzlJI6lDS3seANQ+Nqp+i58O46LI=", "owner": "nix-community", "repo": "home-manager", - "rev": "44677a1c96810a8e8c4ffaeaad10c842402647c1", + "rev": "e3ad5108f54177e6520535768ddbf1e6af54b59d", "type": "github" }, "original": { @@ -657,11 +657,11 @@ ] }, "locked": { - "lastModified": 1715380449, - "narHash": "sha256-716+f9Rj3wjSyD1xitCv2FcYbgPz1WIVDj+ZBclH99Y=", + "lastModified": 1715930644, + "narHash": "sha256-W9pyM3/vePxrffHtzlJI6lDS3seANQ+Nqp+i58O46LI=", "owner": "nix-community", "repo": "home-manager", - "rev": "d7682620185f213df384c363288093b486b2883f", + "rev": "e3ad5108f54177e6520535768ddbf1e6af54b59d", "type": "github" }, "original": { @@ -686,11 +686,11 @@ ] }, "locked": { - "lastModified": 1713612213, - "narHash": "sha256-zJboXgWNpNhKyNF8H/3UYzWkx7w00TOCGKi3cwi+tsw=", + "lastModified": 1715791817, + "narHash": "sha256-J069Uhv/gCMFLX1dSh2f+9ZTM09r1Nv3oUfocCnWKow=", "owner": "hyprwm", "repo": "hyprcursor", - "rev": "cab4746180f210a3c1dd3d53e45c510e309e90e1", + "rev": "7c3aa03dffb53921e583ade3d4ae3f487e390e7e", "type": "github" }, "original": { @@ -715,11 +715,11 @@ ] }, "locked": { - "lastModified": 1713472482, - "narHash": "sha256-7Ft5WZTMIjXOGgRCf31DZBwK6RK8xkeKlD5vFXz3gII=", + "lastModified": 1715699575, + "narHash": "sha256-MLTUVPcRbH9i+AchIK+3SaeF3K27NGLApQCRoQEsc3s=", "owner": "hyprwm", "repo": "hypridle", - "rev": "7cff4581a3753154fc5b41f39a098fad49b777b1", + "rev": "afa6e21b8881a4a7d01b960ee4a2421c495777aa", "type": "github" }, "original": { @@ -738,11 +738,11 @@ "xdph": "xdph" }, "locked": { - "lastModified": 1715468612, - "narHash": "sha256-pA0lpLJ3a+EhOCpEdksx5UlzXTcOaZzISppKKLYwAeg=", + "lastModified": 1715972853, + "narHash": "sha256-medEslUynA9952HeEdYNxGYZyyMz+hEEgV6RV31pvvc=", "ref": "refs/heads/main", - "rev": "33a7b7bb6b307d6e4a093f75ffdda0419cd7ffaf", - "revCount": 4671, + "rev": "2ead1fd22103ce065661555513bace5897083ded", + "revCount": 4717, "submodules": true, "type": "git", "url": "https://github.com/hyprwm/Hyprland" @@ -761,11 +761,11 @@ ] }, "locked": { - "lastModified": 1713780596, - "narHash": "sha256-DDAYNGSnrBwvVfpKx+XjkuecpoE9HiEf6JW+DBQgvm0=", + "lastModified": 1715621965, + "narHash": "sha256-S5Wzi3hhFOiCaeZqmx3zBdrv8KzaEafD5hCfY8ixz0A=", "owner": "hyprwm", "repo": "contrib", - "rev": "110e6dc761d5c3d352574def3479a9c39dfc4358", + "rev": "46d2206858657d439792926958f52b037534de49", "type": "github" }, "original": { @@ -786,11 +786,11 @@ ] }, "locked": { - "lastModified": 1715172513, - "narHash": "sha256-TjQ74AGpEgNx/+sM0VKnPAOlYEG22FUJ9+RwDDP/hoA=", + "lastModified": 1715722806, + "narHash": "sha256-KrSLG2H3KGELxTFdiBhv8U6D53Q3UsJsQO+KgEabsNA=", "owner": "hyprwm", "repo": "hyprland-plugins", - "rev": "dcbdc9a08d1df753d6799bab823486f1fff5b8e6", + "rev": "c28d1011f4868c1a1ee80b10d9ee79900686df82", "type": "github" }, "original": { @@ -838,11 +838,11 @@ ] }, "locked": { - "lastModified": 1713121246, - "narHash": "sha256-502X0Q0fhN6tJK7iEUA8CghONKSatW/Mqj4Wappd++0=", + "lastModified": 1715791527, + "narHash": "sha256-HhQ4zvGHrRjR63ltySSeg+x+0jb0lepiutWdnFhLRoo=", "owner": "hyprwm", "repo": "hyprlang", - "rev": "78fcaa27ae9e1d782faa3ff06c8ea55ddce63706", + "rev": "969cb076e5b76f2e823aeca1937a3e1f159812ee", "type": "github" }, "original": { @@ -867,11 +867,11 @@ ] }, "locked": { - "lastModified": 1714910693, - "narHash": "sha256-kkgjq8ZCnxYgqPX7O2kUHdzBm08bRlESCukSzE7XE2g=", + "lastModified": 1715699621, + "narHash": "sha256-8DmIFq+3od8OZmDYB/okBWgnOdv87AK37wUhppkEY+U=", "owner": "hyprwm", "repo": "hyprpaper", - "rev": "1e1fc79d84c35a673c52cfa0be1ea9df1aed8442", + "rev": "b2f8274e1d52b0008f770f1136c9d58f77530202", "type": "github" }, "original": { @@ -892,11 +892,11 @@ ] }, "locked": { - "lastModified": 1715287423, - "narHash": "sha256-B7AJIjOyWgVMKhu7DlOnWa0VprdhywUVHuB/j+EwSxM=", + "lastModified": 1715879663, + "narHash": "sha256-/DwglRvj4XF4ECdNtrCIbthleszAZBwOiXG5A6r0K/c=", "owner": "hyprwm", "repo": "hyprwayland-scanner", - "rev": "e2fc1c0eb8b392110588f478cce644348ead7271", + "rev": "f5181a068c1b06f2db51f6222e50a0c665a2b0c3", "type": "github" }, "original": { @@ -914,11 +914,11 @@ ] }, "locked": { - "lastModified": 1715417624, - "narHash": "sha256-Wp3vGZRQYVrEveB9UXXZRDvRFrkw6rXXXLxj/6sbg7M=", + "lastModified": 1715922002, + "narHash": "sha256-FSUrne82MXFzZ7R88ZnJz21kv06GS2TS/Ctsd+RXbP4=", "owner": "Jovian-Experiments", "repo": "Jovian-NixOS", - "rev": "8fef078acb3206be58ae5892a32d6ed75b695647", + "rev": "23a55d6bb80f6340d0acdb9feef754646b68f895", "type": "github" }, "original": { @@ -940,11 +940,11 @@ "rust-overlay": "rust-overlay" }, "locked": { - "lastModified": 1715415369, - "narHash": "sha256-an7aIPLW4+vUWwYgTHsydKdIiAB76EFHZqwOHEL5GWM=", + "lastModified": 1715941270, + "narHash": "sha256-bEGp5SR6NRm5YEXRIJCFb8Cw9mxP1nXQ9RDtofAD9ic=", "owner": "martinvonz", "repo": "jj", - "rev": "d0a29a831d285438e7d1218c838accbffef3ebe2", + "rev": "0a48ac63cbeab30bb39d14744bf073d138918f5c", "type": "github" }, "original": { @@ -1044,11 +1044,11 @@ ] }, "locked": { - "lastModified": 1715421757, - "narHash": "sha256-+Spanf33JTrH7io2PM5GmW3VO2qfy9f9QkVoxb87Fws=", + "lastModified": 1715931180, + "narHash": "sha256-Ll4Sm2hjS1gXCFq0moCjW1kRR+jeK4QnBi/qKwWn3Yc=", "owner": "YaLTeR", "repo": "niri", - "rev": "bc29256b9d95f265c8f6508e7949c57497835430", + "rev": "4dc7a6ceb80dfa8ac04ee9ca44a599405493f6cb", "type": "github" }, "original": { @@ -1080,11 +1080,11 @@ "nixpkgs": "nixpkgs_6" }, "locked": { - "lastModified": 1715476621, - "narHash": "sha256-tsvjakds3dmU0L+hFk35JwihQAd40d5AoVZmq62IaHU=", + "lastModified": 1715908553, + "narHash": "sha256-9te1GH3e4gTARupbBhzqeMDKdVDHEky3AvIGzJpnm+I=", "owner": "fufexan", "repo": "nix-gaming", - "rev": "78c0a23969771a7fe1a0dc51b23dc8bc07a6c555", + "rev": "8bd322b708faab6e8e09d300acec3ada7443b9a3", "type": "github" }, "original": { @@ -1218,12 +1218,12 @@ }, "nixpkgs_2": { "locked": { - "lastModified": 1715266358, - "narHash": "sha256-doPgfj+7FFe9rfzWo1siAV2mVCasW+Bh8I1cToAXEE4=", - "rev": "f1010e0469db743d14519a1efd37e23f8513d714", - "revCount": 623656, + "lastModified": 1715787315, + "narHash": "sha256-cYApT0NXJfqBkKcci7D9Kr4CBYZKOQKDYA23q8XNuWg=", + "rev": "33d1e753c82ffc557b4a585c77de43d4c922ebb5", + "revCount": 626834, "type": "tarball", - "url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.623656%2Brev-f1010e0469db743d14519a1efd37e23f8513d714/018f6170-2659-7e6f-b922-28ba703cc7f5/source.tar.gz" + "url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.626834%2Brev-33d1e753c82ffc557b4a585c77de43d4c922ebb5/018f8037-433d-77f3-b4bb-e542e48f7fd6/source.tar.gz" }, "original": { "type": "tarball", @@ -1248,11 +1248,11 @@ }, "nixpkgs_4": { "locked": { - "lastModified": 1715087517, - "narHash": "sha256-CLU5Tsg24Ke4+7sH8azHWXKd0CFd4mhLWfhYgUiDBpQ=", + "lastModified": 1715787315, + "narHash": "sha256-cYApT0NXJfqBkKcci7D9Kr4CBYZKOQKDYA23q8XNuWg=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "b211b392b8486ee79df6cdfb1157ad2133427a29", + "rev": "33d1e753c82ffc557b4a585c77de43d4c922ebb5", "type": "github" }, "original": { @@ -1296,11 +1296,11 @@ }, "nixpkgs_7": { "locked": { - "lastModified": 1715266358, - "narHash": "sha256-doPgfj+7FFe9rfzWo1siAV2mVCasW+Bh8I1cToAXEE4=", + "lastModified": 1715787315, + "narHash": "sha256-cYApT0NXJfqBkKcci7D9Kr4CBYZKOQKDYA23q8XNuWg=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "f1010e0469db743d14519a1efd37e23f8513d714", + "rev": "33d1e753c82ffc557b4a585c77de43d4c922ebb5", "type": "github" }, "original": { @@ -1313,9 +1313,6 @@ "pre-commit-hooks": { "inputs": { "flake-compat": "flake-compat_3", - "flake-utils": [ - "fu" - ], "gitignore": "gitignore_2", "nixpkgs": [ "nixpkgs" @@ -1323,11 +1320,11 @@ "nixpkgs-stable": "nixpkgs-stable_3" }, "locked": { - "lastModified": 1714478972, - "narHash": "sha256-q//cgb52vv81uOuwz1LaXElp3XAe1TqrABXODAEF6Sk=", + "lastModified": 1715870890, + "narHash": "sha256-nacSOeXtUEM77Gn0G4bTdEOeFIrkCBXiyyFZtdGwuH0=", "owner": "cachix", "repo": "pre-commit-hooks.nix", - "rev": "2849da033884f54822af194400f8dff435ada242", + "rev": "fa606cccd7b0ccebe2880051208e4a0f61bfc8c1", "type": "github" }, "original": { @@ -1649,11 +1646,11 @@ ] }, "locked": { - "lastModified": 1714662532, - "narHash": "sha256-Pj2xGSYhapYbXL7sk7TTlOtCZcTfPQoL3fPbZeg7L4Y=", + "lastModified": 1715788457, + "narHash": "sha256-32HOkjSIyANphV0p5gIwP4ONU/CcinhwOyVFB+tL/d0=", "owner": "hyprwm", "repo": "xdg-desktop-portal-hyprland", - "rev": "1f228ba2f1f254195c0b571302b37482861abee3", + "rev": "af7c87a32f5d67eb2ada908a6a700f4e74831943", "type": "github" }, "original": { diff --git a/home/programs/browsers/chromium.nix b/home/programs/browsers/chromium.nix index d678d5b..bc784c4 100644 --- a/home/programs/browsers/chromium.nix +++ b/home/programs/browsers/chromium.nix @@ -2,9 +2,6 @@ programs.chromium = { enable = true; commandLineArgs = ["--enable-features=TouchpadOverscrollHistoryNavigation"]; - extensions = [ - {id = "cjpalhdlnbpafiamejdnhcphjbkeiagm";} - {id = "bkkmolkhemgaeaeggcmfbghljjjoofoh";} - ]; + extensions = []; }; } diff --git a/home/programs/default.nix b/home/programs/default.nix index 9f76729..b3691c3 100644 --- a/home/programs/default.nix +++ b/home/programs/default.nix @@ -1,7 +1,7 @@ {pkgs, ...}: { imports = [ ./anyrun - #./browsers/chromium.nix + ./browsers/chromium.nix ./browsers/firefox.nix #./fuzzel ./social/discord.nix diff --git a/system/default.nix b/system/default.nix index 7ecc100..8c6bf45 100644 --- a/system/default.nix +++ b/system/default.nix @@ -12,6 +12,7 @@ let ./hardware/bluetooth.nix ./hardware/controller.nix + ./hardware/ledger.nix ./services ./services/greetd.nix diff --git a/system/hardware/ledger.nix b/system/hardware/ledger.nix new file mode 100644 index 0000000..2df8799 --- /dev/null +++ b/system/hardware/ledger.nix @@ -0,0 +1,7 @@ +{ + services.udev.extraRules = '' + SUBSYSTEMS=="usb", ATTRS{idVendor}=="2581", ATTRS{idProduct}=="1b7c|2b7c|3b7c|4b7c", TAG+="uaccess", TAG+="udev-acl" + SUBSYSTEMS=="usb", ATTRS{idVendor}=="2c97", TAG+="uaccess", TAG+="udev-acl" + KERNEL=="hidraw*", ATTRS{idVendor}=="2c97", MODE="0666" + ''; +}