Skip to content

Instantly share code, notes, and snippets.

@dverdonschot
dverdonschot / devenv.nix
Last active February 21, 2026 16:34
devenv config for using bevy with breakout example and amd gpu
{ pkgs, lib, config, inputs, ... }:
{
# https://devenv.sh/basics/
env.GREET = "devenv, this config will help setting up Cargo and Bevy to work with AMD GPU";
# https://bevyengine.org/learn/quick-start/getting-started/
# git clone https://github.com/bevyengine/bevy
# devenv init
# replace devenv.nix with this gist
# Fedora 38 Nvidia driver issues.
Since reinstalling with Fedora 38 I experienced problems when installing the Nvidia driver.
Initially it seemed to install fine, but then I booted with the newest kernel and only got a grey screen like on a second monitor.
https://discussion.fedoraproject.org/t/fedora-38-nvidia-driver-issue/81470
The problem was with Phantom monitor(none-1-1) and freezing Wayland session
After some workarounds i found that problem is due to nvidia-drm.modeset=1 kernel option not set
@dverdonschot
dverdonschot / git-clone-change-push.py
Created December 25, 2019 15:16
Python script that clones a repository from Gitlab, changes a file and pushes it to Gitlab again.
#!/usr/bin/python3
"""
Python script that clones a repository from Gitlab, changes a file and pushes it to Gitlab again.
Script to update A DNS records in gitlab for CoreDNS for use in a automated deployment.
when git is updated gitlab-ci will restart the docker coredns container with the new config.
Author: dverdonschot