Inspired By: grafana/loki#333
- docker-compose.yml
version: "3"
networks:
loki:
latest-nixos-minimal-x86_64-linux.iso: | |
wget https://channels.nixos.org/nixos-20.03/latest-nixos-minimal-x86_64-linux.iso | |
curl -Ls https://channels.nixos.org/nixos-20.03/latest-nixos-minimal-x86_64-linux.iso.sha256 \ | |
| grep -F .iso | head -n1 \ | |
| sed 's|nixos-minimal-.\+|latest-nixos-minimal-x86_64-linux.iso|' \ | |
| sha256sum -c - | |
root.img: | |
qemu-img create root.img 10G |
Inspired By: grafana/loki#333
version: "3"
networks:
loki:
After using NixOS for a year, I've found it to be a great operating system. When the software I need is on nixpkgs, things work out great. When I need to install software from outside of nixpkgs, though, it can become a pain. Trying to figure out the quirks of some closed source application can become pretty complicated. It would be great to package it and contribute it back to nixpkgs, but a lot of the time I just want to have the application working as soon as possible.
Since Ubuntu is a more standard linux distribution, I hope that it's better supported by some of these closed source applications. By dual booting, it's possible to get the best of both worlds.
{ pkgs, lib, ... }: | |
with lib; | |
{ | |
config = { | |
i18n.defaultLocale = "de_DE.UTF-8"; | |
time.timeZone = "Europe/Paris"; | |
services = { |
Mute these words in your settings here: https://twitter.com/settings/muted_keywords | |
ActivityTweet | |
generic_activity_highlights | |
generic_activity_momentsbreaking | |
RankedOrganicTweet | |
suggest_activity | |
suggest_activity_feed | |
suggest_activity_highlights | |
suggest_activity_tweet |
Description=S3FS FUSE mount | |
Documentation=https://github.com/s3fs-fuse/s3fs-fuse | |
Wants=network-online.target | |
After=network-online.target | |
AssertPathIsDirectory=/mnt/s3fs | |
[Service] | |
Type=oneshot | |
RemainAfterExit=yes | |
ExecStart=/usr/bin/s3fs mybucket:/bucketdir /mnt/s3fs -o url=https://nyc3.digitaloceanspaces.com -o use_cache=/tmp -o allow_other -o use_path_request_style -o uid=1000 -o gid=1000 |
# Controlling my Buva Qstream ventilation system using: | |
# * A Wemos D1 mini lite (an ESP8266 based board) | |
# * A Wemos power shield so I can power the Wemos from the ventilation units 12V supply. | |
# * A simple PWM to 10V convertor like this: https://www.cheaptech.nl/pwm-signaal-te-voltage-converter-1-3-khz-0-10-v-pw.html | |
# * The amazing ESPHome firmware tool: https://esphome.io | |
# * Home Assistant to tie it all together: https://www.home-assistant.io | |
# | |
# I used to use a Raspberry Pi and some Python code for this. See https://gist.github.com/SqyD/a927ab612df767a0cc892bcde23d025c | |
# The Wemos approach seems more stable and doesn't require external USB power. |
#!env sh | |
mac=C0:28:8D:00:2A:A8 | |
function ue_on() { | |
handle=0x0003 | |
value=b469218dd9e701 | |
gatttool -b $mac --char-write-req --handle=$handle --value $value | |
} |
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Principal": "*", | |
"Action": [ | |
"s3:ListBucket", | |
"s3:GetBucketLocation" | |
], |