This file contains hidden or 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
#include <dt-bindings/pinctrl/bcm2835.h> | |
/dts-v1/; | |
/plugin/; | |
/ { | |
compatible = "raspberrypi,2-model-b"; | |
fragment@0 { | |
target = <&spi>; | |
__overlay__ { | |
cs-gpios = <&gpio 8 1>, <&gpio 7 1>; |
This file contains hidden or 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, lib, ... }: | |
{ | |
# 253 nsd | |
# 153 adguardhome | |
# 53 unbound | |
services.nsd = | |
let dns = | |
import ("${builtins.fetchTarball { | |
url = "https://github.com/nix-community/dns.nix/archive/refs/tags/v1.2.0.tar.gz"; |
This file contains hidden or 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.kernel.sysctl = { | |
"net.ipv4.conf.all.forwarding" = true; | |
"net.ipv6.conf.all.forwarding" = true; | |
}; |
This file contains hidden or 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.ircbridge = { | |
enable = true; | |
instances = { | |
staging.irc = { | |
nick = "ircbridge"; | |
host = "localhost"; | |
port = 6666; | |
channels = [ | |
"#bottest" | |
]; |
This file contains hidden or 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.rabbitmq = { | |
enable = true; | |
configItems = { | |
"heartbeat" = "6"; | |
"tcp_listen_options.keepalive" = "true"; | |
"tcp_listen_options.send_timeout" = "1500"; # default is 15000 | |
"management.tcp.ip" = "127.0.0.1"; | |
"management.tcp.port" = "15672"; | |
}; | |
plugins = [ "rabbitmq_management" ]; |
This file contains hidden or 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
# Module for configuring libvirt with static NixOS networking | |
# instead of using libvirt managed bridge. | |
{ config, lib, pkgs, ... }: | |
with lib; | |
let | |
cfg = config.virtualisation.libvirtd.networking; | |
v6Enabled = cfg.ipv6.network != null; | |
v6PLen = toInt (elemAt (splitString "/" cfg.ipv6.network) 1); |
This file contains hidden or 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
import Prelude | |
import Control.Applicative (pure) | |
import Graphics.Implicit | |
import Graphics.Implicit.Definitions | |
import Graphics.Implicit.Primitives | |
displaced | |
:: (Object obj vec) | |
=> (vec -> Double) | |
-> obj |
This file contains hidden or 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
{ | |
imports = [ | |
<nixpkgs/nixos/modules/virtualisation/lxc-container.nix> | |
]; | |
nixpkgs = { | |
crossSystem.system = "armv7l-linux"; | |
overlays = [ | |
]; | |
}; |
This file contains hidden or 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, lib, ... }: | |
{ | |
nixpkgs.overlays = [ | |
(self: super: { | |
firejailedFirefox = super.stdenv.mkDerivation rec { | |
name = "firejailed-firefox-desktop-item"; | |
dontBuild = true; | |
unpackPhase = "true"; | |
desktopItem = super.makeDesktopItem { |
This file contains hidden or 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
(setq ledger-mode-should-check-version nil | |
ledger-report-links-in-register nil | |
ledger-report-auto-width nil | |
ledger-report-use-native-highlighting nil | |
ledger-binary-path "hledger") |
NewerOlder