Skip to content

Instantly share code, notes, and snippets.

View andi242's full-sized avatar
😴
I may respond slow

Andreas andi242

😴
I may respond slow
View GitHub Profile
@andi242
andi242 / configuration.nix
Created September 25, 2025 10:35
nixos secrets with sops-nix
{ config, pkgs, inputs, ... }:
let
secretspath = builtins.toString inputs.nix-secrets;
# ...
in
{
imports = [
inputs.sops-nix.nixosModules.sops
];
@andi242
andi242 / ts0601_trv_sas.py
Created December 5, 2023 17:14
zha hama _TZE200_h4cgnbzg custom quirk
"""Saswell (Tuya whitelabel) 88teujp thermostat valve quirk."""
import logging
from zigpy.profiles import zha
import zigpy.types as t
from zigpy.zcl import foundation
from zigpy.zcl.clusters.general import (
AnalogOutput,
Basic,
@andi242
andi242 / arch-install.sh
Created December 7, 2020 20:26
personal-arch-install.sh
#!/bin/bash
DISK=$1
# if no $1 ask for a disk to wipe
if [ "$1" = "" ]
then
lsblk -o NAME,FSTYPE,MOUNTPOINT,FSUSE%
echo "Here's the system disks, what should be deleted for install? (e.g. vda)"
read DISK
fi