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
| # 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
| 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
| import <nixpkgs/nixos/tests/make-test-python.nix> ({pkgs, ...}: rec { | |
| name = "nesting"; | |
| meta = with pkgs.stdenv.lib.maintainers; { | |
| maintainers = [ sorki ]; | |
| }; | |
| machine = { lib, ... }: | |
| let makeNested = subConf: { | |
| boot.enableContainers = 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
| { pkgs ? import <nixpkgs> {}, ... }: | |
| # experiment based on https://github.com/MatrixAI/TypeScript-Demo-Lib/pull/13 | |
| # needs `--option sandbox false` so not used for now | |
| with pkgs; | |
| let | |
| callNode2nix = name: src: { nodeVersion ? builtins.elemAt (lib.versions.splitVersion nodejs.version) 0 }: | |
| let |
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
| { config, lib, pkgs, ... }: | |
| { | |
| imports = [ | |
| <nixpkgs/nixos/modules/installer/cd-dvd/sd-image-armv7l-multiplatform.nix> | |
| ]; | |
| nixpkgs = { | |
| crossSystem.system = "armv7l-linux"; | |
| }; |
NewerOlder