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
| { attrPaths ? [ | |
| "cargo-download" | |
| # "cargo-vendor" | |
| "carnix" | |
| ] }: | |
| let | |
| pkgs = import ../../../default.nix { }; | |
| getSource = pkg: pkg.overrideAttrs (_: { |
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
| with import <nixpkgs> {}; # FIXME: pin the revision | |
| let | |
| # there is no stable or content adressable URL for this file :( | |
| url = https://riotgamespatcher-a.akamaihd.net/releases/live/installer/deploy/League%20of%20Legends%20installer%20NA.exe; | |
| registry = pkgs.writeText "registry.reg" '' | |
| REGEDIT4 | |
| [HKEY_CURRENT_USER\Software\Wine\X11 Driver] |
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 = [ | |
| # configure the mountpoint of the root device | |
| ({ | |
| fileSystems."/".device = "/dev/disk/by-label/nixos"; | |
| }) | |
| # configure the bootloader | |
| ({ | |
| boot.loader.grub.extraConfig = '' |
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> {}}: | |
| let | |
| lib = pkgs.lib; | |
| makeImageFromDebDist = | |
| { name, fullName, size ? 4096, urlPrefix | |
| , packagesList ? "", packagesLists ? [packagesList] | |
| , packages, extraPackages ? [], postInstall ? "" | |
| , extraDebs ? [] | |
| , QEMU_OPTS ? "", memSize ? 512 | |
| , createRootFS }: |
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
| # This file describes how to build custom virtualbox instances. This examples ignores things like cross compiling etc.. | |
| # this defines the function signature of our expression, pkgs is defaulted to the systems packages, | |
| # you could also overrides that if you need a specific release / channel. | |
| { pkgs ? import <nixpkgs> {}}: | |
| # "let" expressions are just there to introduce scoped variables and functions, | |
| # in this case it is declaring just a helper function | |
| let | |
| # this creates a helper function that abstracts a bit of the boilerplate away | |
| # `mkVM` takes one argument, a list of `modules` to include in the image. |
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
| [Match] | |
| Name=enp0s31f6 | |
| [Network] | |
| Address=192.168.0.1/24 | |
| VRF=vrf-customer1 |
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
| [NetDev] | |
| Name=vrf-customer1 | |
| Kind=vrf | |
| [VRF] | |
| TableId=42 |
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
| #!/usr/bin/env python3 | |
| import os.path | |
| from ics import Calendar, Event | |
| import subprocess | |
| import json | |
| def read_tasks(): | |
| output = subprocess.check_output(['task', 'export']) | |
| for task in json.loads(output.decode('utf-8')): | |
| if task['status'] == 'completed': |
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
| [Service] | |
| ExecStartPre=-/usr/bin/docker rm psql-tmpfs | |
| ExecStart=/usr/bin/docker run --rm --shm-size=2g --name psql-tmpfs -p 127.0.0.1:5434:5432 -t andir/postgresql-tmpfs | |
| ExecStartPost=/bin/sleep 15 | |
| ExecStop=/usr/bin/docker stop psql-tmpfs |
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
| # | |
| # Copyright (c) 2011-2013 by w8rabbit (w8rabbit[at]mail[dot]i2p) | |
| # or from outside i2p: w8rabbit[at]i2pmail[dot]org | |
| # | |
| # Script is under GPL3. | |
| # | |
| # Script is inspired by NullPointerException's xchat script | |
| # | |
| # thanks to darrob for hard beta-testing | |
| # |