This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import aioesphomeapi | |
import asyncio | |
async def main(): | |
loop = asyncio.get_running_loop() | |
cli = aioesphomeapi.APIClient(loop, "foobarhostname", 6053, "foobarpassword") | |
await cli.connect(login=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
systemd.services.docker.path = with pkgs; [ zfs ]; | |
services = { | |
docker = { | |
enable = true; | |
extraOptions = "--storage-driver zfs --exec-opt native.cgroupdriver=systemd --bip=192.168.234.1/24"; | |
autoPrune = { | |
enable = true; | |
dates = "weekly"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
services.greetd = { | |
enable = true; | |
settings.default_session.command = "${lib.makeBinPath [pkgs.greetd.tuigreet]}/tuigreet --time --cmd ${cfg.greetCmd}"; | |
}; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ pkgs, ... }: | |
{ | |
services.pipewire = { | |
enable = true; | |
}; | |
xdg.portal = { | |
enable = true; | |
wlr = { | |
enable = true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ system ? "x86_64-linux" }: | |
let | |
buildAzureImage = params: (import <nixpkgs/nixos> { | |
inherit system; | |
configuration = import ./test.nix params; | |
}).config.system.build.azureImage; | |
in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http { | |
proxy_cache_path /tmp/nginx/cache/osmhot keys_zone=osmhot:1024m inactive=7d; | |
upstream osmhot { | |
server a.tile.openstreetmap.fr; | |
#server b.tile.openstreetmap.fr; | |
keepalive 4; | |
} | |
server { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ config, lib, ... }: | |
with lib; | |
let | |
cfg = config.foo.bar; | |
in | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import json | |
import sys | |
from influxdb import InfluxDBClient | |
series = { | |
'loadavg': ['value'], | |
'idletime': ['value'], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
services.dovecot2 = { | |
modules = with pkgs; [ dovecot_pigeonhole ]; | |
extraConfig = '' | |
protocol lmtp { | |
mail_plugins = $mail_plugins sieve | |
} | |
service managesieve-login { | |
inet_listener sieve { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am fpletz on github. | |
* I am fpletz (https://keybase.io/fpletz) on keybase. | |
* I have a public key whose fingerprint is 8A39 615D CE78 AF08 2E23 F303 846F DED7 7926 17B4 | |
To claim this, I am signing this object: |
NewerOlder