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
{ | |
firstserver = { | |
deployment.targetEnv = "hetzner"; | |
deployment.storeKeysOnMachine = false; | |
deployment.hetzner.mainIPv4 = "1.2.3.4"; | |
deployment.hetzner.partitions = '' | |
clearpart --all --initlabel | |
part raid.11 --size=1024 --ondisk=sda | |
part raid.21 --size=1024 --ondisk=sdb |
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.udev.extraRules = '' | |
# The next line sets the scheduler only for non-rotational disks | |
ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="noop" | |
ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="1", ATTR{queue/scheduler}="deadline" | |
# Some power management... | |
# PCI runtime power management | |
ACTION=="add", SUBSYSTEM=="pci", ATTR{power/control}="auto" | |
# USB autosuspend | |
ACTION=="add", SUBSYSTEM=="usb", ATTR{power/control}="auto" | |
ACTION=="add", SUBSYSTEM=="usb", TEST=="power/autosuspend" ATTR{power/autosuspend}="60" |
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> {}; | |
pkgs.callPackage (import ./hopglass.nix ) {} |
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
[Init] | |
journalmatch = _SYSTEMD_UNIT=smb.service _COMM=smbd SYSLOG_IDENTIFIER=smbd_audit | |
[Definition] | |
ignoreregex = | |
failregex = | |
IP=<HOST>\|.*\.verasto | |
IP=<HOST>\|.*\.moresa\!Ransom | |
IP=<HOST>\|READ_ME\.cube | |
IP=<HOST>\|.*\.COLORIT\!Ransom |
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, pkgs, ... }: | |
{ | |
imports = | |
[ <nixpkgs/nixos/modules/installer/scan/not-detected.nix> | |
]; | |
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "sd_mod" "sr_mod" "rtsx_pci_sdmmc" ]; | |
boot.kernelModules = [ "kvm-intel" ]; | |
boot.extraModulePackages = [ ]; |
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
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
fastcgi_param QUERY_STRING $query_string; | |
fastcgi_param REQUEST_METHOD $request_method; | |
fastcgi_param CONTENT_TYPE $content_type; | |
fastcgi_param CONTENT_LENGTH $content_length; | |
fastcgi_param SCRIPT_NAME $fastcgi_script_name; | |
fastcgi_param REQUEST_URI $request_uri; | |
fastcgi_param DOCUMENT_URI $document_uri; |
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, pkgs, ... }: | |
let | |
# Import unstable channel. | |
# sudo nix-channel --add http://nixos.org/channels/nixpkgs-unstable nixpkgs-unstable | |
# sudo nix-channel --update nixpkgs-unstable | |
unstable = import <nixpkgs-unstable> {}; | |
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
#!/run/current-system/sw/bin/bash | |
write_line() { | |
sleep 0.1${RANDOM} | |
echo "-> $*" | |
echo "$*" >&99 | |
sleep 0.1${RANDOM} | |
} | |
get_last_reply() { | |
sleep 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
# This file has been generated by node2nix 1.5.1. Do not edit! | |
{pkgs ? import <nixpkgs> { | |
inherit system; | |
}, system ? builtins.currentSystem, nodejs ? pkgs."nodejs-4_x"}: | |
let | |
nodeEnv = import ./node-env.nix { | |
inherit (pkgs) stdenv python2 utillinux runCommand writeTextFile; | |
inherit nodejs; |
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
[nix-shell:~]$ cat test.rb | |
required = String | |
case required | |
when String | |
puts "performing string checks" | |
when Integer | |
puts "performing integer checks" | |
else | |
raise "unsupported" | |
end |
NewerOlder