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
[Unit] | |
Description=pushover warning | |
[Service] | |
Type=oneshot | |
ExecStart=/usr/bin/curl -s \ | |
--form-string "token=<PUSHOVER_APPLICATION_TOKEN>" \ | |
--form-string "user=<PUSHOVER_USER_TOKEN>" \ | |
--form-string "message=service %I at %H failed" \ | |
https://api.pushover.net/1/messages.json |
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
. 242.3 GiB [##########################] /harshanavkis | |
. 137.1 GiB [############## ] /paul | |
98.9 GiB [########## ] /julian | |
. 84.8 GiB [######### ] /dimitrios | |
. 61.5 GiB [###### ] /maurice | |
33.0 GiB [### ] /martin | |
12.1 GiB [# ] /masa | |
7.8 GiB [ ] /joerg | |
5.3 MiB [ ] /okelmann |
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 bash | |
set -exuo pipefail | |
PROGRAM_NAME="$0" | |
inst() { | |
local system="" host="" action="install" from="auto" mount="" | |
local -a nixCopyArgs | |
while [[ "$#" -gt 0 ]] ; do | |
case "$1" 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
{ lib | |
, buildGoPackage | |
, fetchurl | |
, makeWrapper | |
, git | |
, bash | |
, gzip | |
, openssh | |
, pam | |
, sqliteSupport ? 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
{ | |
boot.initrd.availableKernelModules = [ | |
"xhci_pci" | |
"ahci" | |
"nvme" | |
]; | |
disko.devices = import ./raid-config.nix { | |
raidLevel = 1; | |
}; |
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
[root@nixos:/]# cat etc/fstab | |
# This is a generated file. Do not edit! | |
# | |
# To make changes, edit the fileSystems and swapDevices NixOS options | |
# in your /etc/nixos/configuration.nix file. | |
# | |
# <file system> <mount point> <type> <options> <dump> <pass> | |
# Filesystems. | |
/dev/md/root / ext4 defaults 0 1 |
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 ? import <nixpkgs> {} }: | |
with pkgs; | |
let | |
clang-wrapped = wrapCCWith { | |
cc = llvmPackages.clang-unwrapped; | |
bintools = wrapBintoolsWith { | |
bintools = pkgs.runCommand "lld" {} '' | |
mkdir -p $out/bin |
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
use std::io; | |
use std::path::Path; | |
use std::fs::create_dir_all; | |
fn mkdir_p<P: AsRef<Path>>(path: &P) -> io::Result<()> { | |
if let Err(e) = create_dir_all(path) { | |
if e.kind() != io::ErrorKind::AlreadyExists { | |
return Err(e) | |
} | |
} |
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 python | |
import socket | |
import subprocess | |
import os, sys | |
MPV_SOCKET = "/tmp/mpvsocket" | |
CIDER = "cider.hq.c3d2.de" | |
IS_PYTHON2 = sys.version_info < (3, 0) | |
if IS_PYTHON2: |
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
with import <nixpkgs> {}; | |
mkShell { | |
nativeBuildInputs = [ | |
bashInteractive | |
libosmocore | |
talloc | |
]; | |
NIX_CFLAGS_COMPILE = "-ltalloc"; | |
} |