▲ 8 r/teenagersbutcode+2 crossposts

Motivation to build an interesting project?

Originally I was going to spend the summer building out a moderately-sized lichess clone, complete with a custom engine (written in Rust btw). However, once I got to move generation, I lost motivation to continue.

I instead spent my time working on open source contributions (mainly frontend, which I can safely say I do not want to spend the rest of my life doing frontend. It barely even feels like programming tbh), which I kept doing for about a month because I actually use the project myself. But I've lost steam because well, frontend (react specifically) isn't that fun.

My question is, do I continue with the lichess clone, or do I start something else? Keep in mind the longest I've ever spent on a single project (a search engine) was about 3 months (thankfully I spent most of it working on actual code instead of frontend, so it was much more enjoyable). I'm not sure where to go next tbh.

reddit.com
u/dastarruer — 14 days ago
▲ 2 r/NixOS

Music player focused on classical music?

As the title suggests, is there a music player packaged for nixpkgs that is focused on streaming classical music? Like Apple Music Classical basically. Preferably also customizable so I can theme it the same as the rest of my system.

reddit.com
u/dastarruer — 17 days ago

How do regular open source contributions look on an application?

Haven’t decided where I want to go yet, so my baseline (though admittedly high) is somewhere like Cornell. Regular open source contributions means like multiple pull requests a week (been a very boring summer tbh) in this context.

reddit.com
u/dastarruer — 29 days ago
▲ 15 r/readest

Maintainer using heavily ai-generated commits?

Pretty much every commit on the repo that’s not made by outside contributors lists Claude code as the co author, and each commit is like 1000 lines changed. How can I be sure the quality of the app won’t drop in the long term because of this?

reddit.com
u/dastarruer — 1 month ago
▲ 3 r/NixOS

How to package tauri project with rogue plugin build scripts?

I'm writing this PR: https://github.com/readest/readest/pull/4936 and need to figure out how to package a tauri project with crane.

HOWEVER. there are two plugins that fail to build (my understanding is that they try to write some JSON file at build time, but can't since they are inside the build dir): tauri-plugin-sign-in-with-apple and tauri-plugin-oauth, both with the following error:

     > error: failed to run custom build command for `tauri-plugin-sign-in-with-apple v1.0.2`
       >
       > Caused by:
       >   process didn't exit successfully: `/build/source/$out/release/build/tauri-plugin-sign-in-with-apple-4ee05367ba16d669/build-script-build` (exit status: 1)
       >   --- stdout
       >   cargo:rerun-if-changed=permissions
       >   cargo:PERMISSION_FILES_PATH=/build/source/$out/release/build/tauri-plugin-sign-in-with-apple-d03e11f0750286bb/out/tauri-plugin-sign-in-with-apple-permission-files
       >   tauri-plugin: failed to write file './permissions/schemas/schema.json': Permission denied (os error 13)
       > warning: build failed, waiting for other jobs to finish...
       For full logs, run:
         nix log /nix/store/b7frmp9k827zs9kk4qf6lhxhxbiws34z-cargo-package-deps-0.0.1.drv
error: Cannot build '/nix/store/n9wj6d81g46b279av0jp2sb0v6pvnf84-cargo-package-0.0.1.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/w15mmyaa9ws8rzjqhlkmjsirmbdpha4h-cargo-package-0.0.1
error: Build failed due to failed dependency

I've got no clue how to proceed. I can't find anything out there about this issue. help wanted pls

u/dastarruer — 2 months ago
▲ 7 r/NixOS

Running VM requires re-fetching dependencies after garbage collection

For instance, if you run a stylix testbed you have to redownload all dependencies that were garbage collected. Is there a way to cache these required packages in the devshell?

reddit.com
u/dastarruer — 2 months ago
▲ 11 r/NixOS

How can I become more confident with nix?

I can kind of work with nix, but I constantly feel lost and I constantly feel like I need to defer to AI to help me out.

To get better at nix, I decided to refactor my flake.nix in this project: https://github.com/dastarruer/gtkshutdown

However after doing so, I can confidently say that I still have no idea what I'm doing. The reason is definitely because I'm relying on AI too much, but what I usually do to learn new programming languages (write basic projects in get a feel for said languages) doesn't really apply here, since nix isn't built to make programs. This is also why I shied away from using flake-parts.

My question is, what projects can I do to get comfortable with nix? I'm not very used to functional paradigms so even basic things like map confuse me.

u/dastarruer — 2 months ago
▲ 0 r/NixOS

Has anyone tried putting Jovian nix on a modded switch?

Thinking about putting Jovian nix on my switch. Has anyone tried this yet?

reddit.com
u/dastarruer — 2 months ago
▲ 7 r/NixOS

Writing vscode settings.json inside a nix devshell?

Basically if I’m using vscode or zed can’t i write the settings.json file in my devshell to generate it using nix? I haven’t found anyone doing this yet so just wondering if this can actually be done.

reddit.com
u/dastarruer — 2 months ago
▲ 11 r/NixOS

How to override steam package to add `gamemoderun` to all game's launch arguments?

This variable is pulled straight from the gamemode docs:

package = pkgs.steam.override {
        extraEnv = {
          # The only way i've found to start gamemode via an env var (https://github.com/FeralInteractive/gamemode#requesting-gamemode)
          LD_PRELOAD = "$LD_PRELOAD:/usr/\$LIB/libgamemodeauto.so.0";
...
};

However, it doesn't translate to nix for obvious reasons. How can I do this?

u/dastarruer — 2 months ago
▲ 0 r/rust

How do I figure out how to build my own HLS streaming server from scratch?

Are there resources out there for this in rust or other languages? I’d like to build it for a yt clone I’m planning on implementing.

reddit.com
u/dastarruer — 2 months ago

[OC] Made my own GTK-based graceful shutdown utility (gtkshutdown)

I needed a graceful shutdown utility (I kept losing work unsaved work on reboot) , so I tried using hyprshutdown. But it wasn't themeable, so I wrote gtkshutdown , which does the exact same thing but can be themed with GTK.

Unlike hyprshutdown, I plan to expand to other Wayland window managers like sway and niri. But for now, the project just supports Hyprland (it's not going to work on other window managers since it relies on the Hyprland IPC right now).

u/dastarruer — 3 months ago

gtkshutdown - a GTK alternative to hyprshutdown

When I tried hyprshutdown, I realized that I couldn't theme it along with the rest of my system. It looked completely out of place with everything else. So I wrote gtkshutdown, an alternative that can be styled with GTK. I also plan to expand to other Wayland-based window managers in the future, like sway, niri, etc. (since hyprshutdown doesn't plan to support anything other than Hyprland).

u/dastarruer — 3 months ago
▲ 13 r/NixOS

Will the new hyprland lua config affect hm?

Wondering if the current hm hyprland module will just switch over to lua, or if an entirely new hyprland module will be made.

reddit.com
u/dastarruer — 3 months ago

For instance, if I install svelte-language-server through npm, how can I force zed to use that binary instead of downloading its own? This applies to other lsps btw

reddit.com
u/dastarruer — 4 months ago