Skip to content

Instantly share code, notes, and snippets.

View maikelthedev's full-sized avatar
🏠
Working from home

Maikel Frias Mosquea maikelthedev

🏠
Working from home
View GitHub Profile
@maikelthedev
maikelthedev / all-nvidia.nix
Last active September 7, 2026 15:54
Dear Computer give me the latest of everything. F.U. Jensen!
{ pkgs, config, lib, ... }:
let
# ── Pinned nixos-unstable snapshot ────────────────────────────────────────
# Everything GPU-related (driver, CUDA, and — via _module.args — llama-cpp's
# CUDA build) comes from THIS exact nixpkgs rev, NOT the machine's channels.
# `nix-channel --update` therefore can never silently move the GPU stack.
# To upgrade: bump rev + sha256 below, then re-check the driver/CUDA pins.
# Generated 2026-09-07 from nixos-unstable HEAD.
pinnedUnstableSrc = builtins.fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/c043004d1c6985732bcc1cbc5a9c9aecbbb4e0f0.tar.gz";
@maikelthedev
maikelthedev / llama-cpp-p2p.nix
Last active September 2, 2026 22:15
NixOS CUDA P2P for llama.cpp on 2x RTX 5060 Ti: Also F.U. Jensen! 😊
{
config,
pkgs,
lib,
...
}:
let
vars = import ./vars.nix;
unstable = import <unstable> {
config = pkgs.config // {
@maikelthedev
maikelthedev / webmention-source-test.html
Created May 2, 2026 15:47
Webmention test source (links to blog.maikel.dev post)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Webmention test – link to blog post</title>
</head>
<body>
<p>Webmention test source. Link: <a href="https://blog.maikel.dev/2026/05/01/the-ai-bubble-is-bursting.html">The AI bubble is bursting</a>.</p>
</body>
</html>

Hello hello!

Yes I'm npub1l3dgvd8pvmmg44ztrerh7w30eve5dnqvxpupewkxnrtryjfx3xkqt60jfd in Nostr

@maikelthedev
maikelthedev / config
Last active March 15, 2025 18:43
My waybar config
{
"layer": "top",
"position": "top",
// Choose the order of the modules
"modules-left": [
// "hyprland/workspaces",
"niri/workspaces",
"custom/right-arrow-dark"
],
@maikelthedev
maikelthedev / config.kdl
Last active March 14, 2025 22:18
My Niri configuration and Emolji selector
input {
keyboard {
xkb {
layout "es"
}
}
touchpad {
tap
natural-scroll
accel-speed 0.5
@maikelthedev
maikelthedev / flake.nix
Created January 26, 2025 01:00
Oh my God I'm using Flakes now 🤯
{
description = "Basic flake for the dev environment of indie";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
};
outputs = { self, nixpkgs }:
let
@maikelthedev
maikelthedev / shell.nix
Created January 24, 2025 19:27
Now with extra colours and emojis 😮
# On Nixos running this from the project folder with nix-shell will create a shell with all the necessary dependencies
# and run postgresql in an ephemeral mode for development.
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
nativeBuildInputs = with pkgs; [
elixir_1_18
elixir-ls
erlang
rebar3
@maikelthedev
maikelthedev / shell.nix
Created January 24, 2025 19:21
Now with cleaner variable interpolation
# On Nixos running this from the project folder with nix-shell will create a shell with all the necessary dependencies
# and run postgresql in an ephemeral mode for development.
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
nativeBuildInputs = with pkgs; [
elixir_1_18
elixir-ls
erlang
rebar3
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
name = "indie";
nativeBuildInputs = with pkgs; [
elixir_1_18
erlang
rebar3
nodejs
yarn