Skip to content

Instantly share code, notes, and snippets.

View Malix-Labs's full-sized avatar
🌊

Malix - Alix Brunet Malix-Labs

🌊
View GitHub Profile
@Malix-Labs
Malix-Labs / default.nix
Last active August 10, 2026 19:59
Nix Lib Extra - Attrsets
{
genAttr =
name: value: {
${name} = value name;
};
}
@Malix-Labs
Malix-Labs / .gitignore
Last active July 23, 2026 01:56
Nix Offline
target/
*.nar.zst
@Malix-Labs
Malix-Labs / README.md
Last active July 11, 2026 12:29
Nix Replace Coreutils with Uutils

Nix Lib Coreutils

Nix Library for Coreutils

Setup

Flakes

  1. inputs.lib-coreutils = {
@Malix-Labs
Malix-Labs / default.nix
Last active July 8, 2026 07:29
Nix Extract Config Derivations
lib: schemas: flakeOutputs:
let
# Recursively collect derivations from an inventory node's children.
# The inventory is a tagged tree: subtrees live under .children, not as plain nested attrsets.
collect =
path: value: children:
lib.concatMap (
name:
let
node = children.${name};
@Malix-Labs
Malix-Labs / .envrc
Last active July 22, 2026 00:20
Nix Options Utils
use flake
@Malix-Labs
Malix-Labs / README.md
Last active July 2, 2026 17:59
NixOS Test Harvester

NixOS Test Harvester

Exposes a library helper and a flake-parts module to dynamically inspect NixOS configurations and register their enabled services to Nixpkgs' integration tests for CI/checks.

How to use

Flake Input

inputs.nixos-test-harvester = {
  url = "https://gist.github.com/Malix-Labs/d58d2af9be08519099b17abb25f4d5be";
@Malix-Labs
Malix-Labs / README.md
Last active August 2, 2026 12:44
`agy` Timers Utils

Agent Quota Timer Utils

An Agent Quota model quota timer handling script

It is packaged as a Nix flake, exposing a standalone package, a Home Manager module, and a native NixOS module to run the script periodically via systemd user services and timers so the cooldown is always maxxed

How to use

Flake Input

@Malix-Labs
Malix-Labs / .envrc
Last active March 1, 2026 00:27
Efrei 2026 Cloud Computing Lab 4
use flake
@Malix-Labs
Malix-Labs / bash.bash
Last active April 13, 2026 23:15
Bash Boilerplate
#!/usr/bin/env bash
set -euCET -o pipefail
@Malix-Labs
Malix-Labs / 4.log
Last active June 29, 2025 22:05
Knowledge
1. Individuals of type Person (Customer + DeliveryMan):
Customer: http://www.example.org/customer/MariaRossi
Customer: http://www.example.org/customer/JeanDupont
DeliveryMan: http://www.example.org/delivery/Claude
DeliveryMan: http://www.example.org/delivery/Alice
2. SPARQL - All persons (Customer + DeliveryMan) with names:
Person: http://www.example.org/delivery/Claude, Name: Claude
Person: http://www.example.org/customer/MariaRossi, Name: Maria Rossi
Person: http://www.example.org/delivery/Alice, Name: Alice