!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

800 Members
161 Servers

Load older messages


SenderMessageTime
12 May 2025
@gsaurel:laas.frnim65s

I have a bunch of eg.

    inputs.patch-arsenik = {
      url = "https://patch-diff.githubusercontent.com/raw/NixOS/nixpkgs/pull/386205.patch";
      flake = false;
    };

in the flake for my systems, applied with patchedNixpkgs = inputs.nixpkgs.legacyPackages.x86_64-linux.applyPatches { src = inputs.nixpkgs; patches = [ inputs.patch-arsenik ]; };, for some of my PRs I want in my pkgs but are not merged. This allow to have up-to-date patches with low effort.

But recently, github rate limits have been hitting me on like 100% of my nix flake update. Anybody has a workaround ?

16:35:42
@gsaurel:laas.frnim65s If I could set an access token on githubusercontent, it would work (eg. as in curl "https://patch-diff.githubusercontent.com/raw/NixOS/nixpkgs/pull/386205.patch?access_token=$GITHUB_TOKEN"), but I have no idea how to configure that without exposing the token directly in my flake.nix, which is a public file 16:39:36
@gsaurel:laas.frnim65s *

I have a bunch of eg.

    inputs.patch-arsenik = {
      url = "https://patch-diff.githubusercontent.com/raw/NixOS/nixpkgs/pull/386205.patch";
      flake = false;
    };

in the flake for my systems, applied with patchedNixpkgs = inputs.nixpkgs.legacyPackages.x86_64-linux.applyPatches { src = inputs.nixpkgs; patches = [ inputs.patch-arsenik ]; };, for some PRs I want in my pkgs but are not merged. This allow to have up-to-date patches with low effort.

But recently, github rate limits have been hitting me on like 100% of my nix flake update. Anybody has a workaround ?

16:41:03
@dramforever:matrix.orgdramforever
In reply to @gsaurel:laas.fr
If I could set an access token on githubusercontent, it would work (eg. as in curl "https://patch-diff.githubusercontent.com/raw/NixOS/nixpkgs/pull/386205.patch?access_token=$GITHUB_TOKEN"), but I have no idea how to configure that without exposing the token directly in my flake.nix, which is a public file
for flake inputs you're in luck, you can set the access-tokens nix option
17:04:03
@dramforever:matrix.orgdramforeveroh wait hmmm17:04:25
@dramforever:matrix.orgdramforeveryeah i posted too quick and didn't notice you're using https on a github url...17:06:19
@gsaurel:laas.frnim65s I tried access-tokens = github.com=ghp_… patch-diff.githubusercontent.com=ghp_…, but it didn't work, and I found in the doc that it is like only for specific to github/gitlab things, so this probably won't work with a random thing 17:08:16
@dramforever:matrix.orgdramforevertbh, i'm mostly surprised this even works. having non-pinnable https inputs is a surefire way to make your old flake revisions non-reproducible17:10:52
@dramforever:matrix.orgdramforever it'll fail the flake.lock check forcing you to update 17:11:36
13 May 2025
@codgician:matrix.codgician.mecodgician joined the room.08:51:52
@gladiator_entered:matrix.orgGladiatorEntred joined the room.09:21:46
@gladiator_entered:matrix.orgGladiatorEntred set a profile picture.09:25:18
@kraem:ne.bul.aekraem changed their profile picture.14:24:05
14 May 2025
@chipherseeker:matrix.orgcipherseeker joined the room.03:52:40
@amrosia:matrix.orgamrosia joined the room.04:09:54
@samuel:mnzn.devSamuel joined the room.11:49:44
@kraem:ne.bul.aekraem changed their profile picture.17:16:20
@kraem:ne.bul.aekraem changed their profile picture.17:16:36
@vinylen:matrix.orgvinylen joined the room.20:15:18
16 May 2025
@yaqueen:matrix.orgyaqueen left the room.14:22:31
17 May 2025
@doaN:matrix.org@doaN:matrix.org joined the room.05:01:49
@harrythe13th:matrix.org@harrythe13th:matrix.org joined the room.10:57:14
18 May 2025
@doaN:matrix.org@doaN:matrix.org left the room.06:40:21
20 May 2025
@gjdan:aho-updates.comGJdan joined the room.07:26:32
@cristids:matrix.orgCristian Daniel Stamateanu joined the room.09:12:50
@kongrooparadox:matrix.orgkongrooparadox joined the room.21:44:08
21 May 2025
@weethet:catgirl.cloudWeetHet changed their profile picture.10:59:15
@kris_shannon:matrix.orgKris Shannon joined the room.12:02:55
@spaenny:tchncs.dePhilipp joined the room.18:22:04
22 May 2025
@paintenzero:beeper.compaintenzeroI have NixOS configuration in a flake and I am using home-manager. I'm trying to make an overlay for code-cursor for several days already to update it to the latest version. I couldn't make it work yet. How do you guys keep AppImage packages updated?04:40:25

Show newer messages


Back to Room ListRoom Version: 6