Skip to content

Instantly share code, notes, and snippets.

View ibizaman's full-sized avatar

Pierre Penninckx ibizaman

View GitHub Profile
@ibizaman
ibizaman / configuration.nix
Created August 5, 2026 08:07
Minecraft server with SHB
{ config, pkgs, ... }:
let
hostname = "myhost";
backupCfg =
{
enable ? true,
shbOpt ? null,
timerConfig ? {
OnBootSec = "15min";
@ibizaman
ibizaman / test.nix
Created July 25, 2026 11:31
NixOS VM test for NetworkManager controlling a wlan0 interface
{
pkgs,
lib,
...
}:
pkgs.testers.runNixOSTest {
name = "app-networkmanager";
interactive.sshBackdoor.enable = true;
@ibizaman
ibizaman / shell.nix
Created July 1, 2026 18:54
A shell.nix to develop for pygame
{
nixpkgs ? fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/0590cd39f728e129122770c029970378a79d076a.tar.gz";
sha256 = "1ia5kjykm9xmrpwbzhbaf4cpwi3yaxr7shl6amj8dajvgbyh2yh4";
},
pkgs ? import nixpkgs {
config = { allowUnfree = true; };
},
}:
let
@ibizaman
ibizaman / configuration.nix
Created June 18, 2026 16:15
KDE services home-manager NixOS module
{
home-manager.users.${user} = {
imports = [
../../modules/kde-serviceMenus.nix
];
me.kde.serviceMenus."FFmpeg" = {
mimeTypes = [ "video/*" ];
actions = {
"remove-sound" = {
name = "Remove Sound";
@ibizaman
ibizaman / configuration.nix
Last active June 13, 2026 21:06
SelfHostBlocks example config
{
lib,
config,
utils,
pkgs,
...
}:
let
domain = "example.com";
dcdomain = "dc=example,dc=com";
{
callPackage,
python3Packages,
lib,
makeWrapper,
playwright-driver,
}:
let
pytest-playwright-asyncio =
{
@ibizaman
ibizaman / shell.nix
Created March 13, 2026 21:06
shell.nix for pygame with pycharm
{
nixpkgs ? fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/0590cd39f728e129122770c029970378a79d076a.tar.gz";
sha256 = "1ia5kjykm9xmrpwbzhbaf4cpwi3yaxr7shl6amj8dajvgbyh2yh4";
},
pkgs ? import nixpkgs {
config = { allowUnfree = true; };
},
}:
let
@ibizaman
ibizaman / configuration.nix
Created May 5, 2025 05:56
backup nix function
(backupCfg {
shbOpt.backup.request = {
user = "root";
sourceDirectories = [
"/var/lib/private/lldap"
];
}; } "lldap")
(backupCfg {} "vaultwarden")
@ibizaman
ibizaman / test.nix
Created June 14, 2024 22:26
Module to extract files to a destination
{ config, lib, pkgs, ... }:
let
extract = { source, stdenv }:
stdenv.mkDerivation {
# inherit destination;
name = "extract";
version = "1.0";
src = source;
# builder = ''
installer-test = (nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
"${nixpkgs}/nixos/modules/virtualisation/qemu-vm.nix"
"${nixpkgs}/nixos/modules/profiles/qemu-guest.nix"
({
config,
lib,
pkgs,
...