Skip to content

Instantly share code, notes, and snippets.

View dezren39's full-sized avatar
🕵️‍♂️
Processing..

Drewry Pope dezren39

🕵️‍♂️
Processing..
View GitHub Profile
@dezren39
dezren39 / framework-13-amd-upgrade.md
Created December 13, 2024 08:41 — forked from miXwui/framework-13-amd-upgrade.md
Framework 13 AMD 7080U Upgrade (From i7-1165G7, Fedora 38)

Note: this is an ongoing process which I'm documenting here. Semi-experimental, but this is my daily driver machine since September 2021 (work included), so I'm aiming for stability (hence why I'm not using the recommended Fedora 39 Beta).

Upgraded from an Intel i7-1165G7 to AMD 7080U mainboard:

  • 64GB (2x32GB) G.Skill F5-5600S4040A32GX2-RS
    • Have an SK Hynix 16GB (2x8GB) 4800MHz (HMCG66MEBSA095N BA) kit that I'll test just to see power draw difference.
  • SK hynix Gold P31 2TB PCIe NVMe Gen3 M.2 2280

These notes are for Fedora 38 6.5.8-200.fc38.x86_64 with SwayWM.

Booted into Fedora with BIOS 3.02 and seemed fine. First thing I did was upgrade to 3.03.

@dezren39
dezren39 / qemu_setup.sh
Created November 8, 2024 07:12 — forked from truthadjustr/qemu_setup.sh
nixos qemu networking
#!/bin/sh
#
tunctl -u dx -t tap0
ifconfig tap0 102.168.100.1 up
# qemu-kvm -hda nixos-disc.img -m 1024 -net nic -net tap,ifname=tap0,script=no
# *** Inside the Qemu guest ***
# ip addr set 192.168.100.2 dev ens3
@dezren39
dezren39 / README.md
Created November 3, 2024 00:14 — forked from pete3n/README.md
NixOS Offline Options

NixOS in Offline and Restrictive Networks

This gist was created to explore options for working with NixOS in a completely offline environment or inside a network with restricted internet access (such as a corporate LAN with a Proxy).

Offline Installation

Netboot/Pixieboot

Zen Mods
Zen Mods
Find and install themes from the store.
Visit Store
Disable Rounded Corners (v2.0.0)
Disable Rounded Corners from Web View.
Formula 1 (v1.0.0)
Embrace the simplicity of black and red
Matcha (v1.0.0)
services = {
# Auto mount devices
udiskie = {
enable = true;
};
dunst = {
enable = true;
package = pkgs.dunst;
@dezren39
dezren39 / write_up.md
Created October 20, 2024 07:26 — forked from udf/write_up.md
A Trick To Use mkMerge at The Top Level of a NixOS module

The Setup

I wanted to write a module that generates multiple systemd services and timers to scrub some zfs pools at certain intervals. The default scrub config does not support individual scrub intervals for each pool.

I want the config to look like this:

{
  services.zfs-auto-scrub = {
 tank = "Sat *-*-* 00:00:00";
@dezren39
dezren39 / network.nix
Created October 16, 2024 01:43 — forked from mutantmell/network.nix
NixOS Router data-driven configuration
{ config, pkgs, lib, ... }:
let
# There were two main sources of inspiration for this configuration:
# 1. https://pavluk.org/blog/2022/01/26/nixos_router.html
# 2. https://francis.begyn.be/blog/nixos-home-router
# Thank you very much!
#
# network types:
# { type = "none"; } # Don't generate a network file

Hi @nrdxp + @edolstra -- I have a couple ideas for how to make things marginally better here but, tl;dr: I'd like feedback or direction from either or both of you on my idea before I invest more time, especially for exploring the proposed solutions that require C++ development. (Also, please let me know if you'd like me to move this from an issue comment to an RFC or even a, e.g., Google Doc design doc, for easier interaction.)

Problem Statement

In my words at a minimum:

flake authors need to be able to request submodule-fetching for the repository hosting flake.nix

(Please see my appendix for supporting use cases and UX/DX considerations if you aren't already convinced about this need. Also, @nrdxp, please let me know if you actually have a different motivating problem in mind?)

@dezren39
dezren39 / chi.go
Created August 20, 2024 01:19 — forked from alexaandru/chi.go
Chi-like syntactic sugar layer on top of stdlib http.ServeMux
// Chi-like syntactic sugar layer on top of stdlib http.ServeMux.
package main
import (
"net/http"
"slices"
)
type (
middleware func(http.Handler) http.Handler