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> {}) | |
, useClang ? false | |
, binutils ? pkgs.binutils | |
, lib ? pkgs.lib | |
, stdenv' ? pkgs.stdenv | |
, gcc ? pkgs.gcc | |
, clangStdenv ? pkgs.clangStdenv | |
, gnumake ? pkgs.gnumake | |
, llvmPackages ? pkgs.llvmPackages | |
}: |
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
{ foo ? null | |
}: | |
{ | |
config = { | |
${foo}.things = 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
{ lib, config, ... }: | |
with lib; | |
{ | |
options.machine = mkOption { | |
default = null; | |
type = types.nullOr types.attr; | |
}; | |
config = mkIf config.enableFoo { |
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
jsaddle = pkgs.haskell.packages.ghcjsHEAD.jsaddle.overrideAttrs (old: { | |
libraryHaskellDepends = old.libraryHaskellDepends + [ self.ghcjs-base ]; | |
}); |
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
╔════════╤═══════════════════════════════════════════════════════════════════════════════════════╗ | |
║ Bytes │ Description ║ | |
╠════════╪═══════════════════════════════════════════════════════════════════════════════════════╣ | |
║ 8 │ "farbfeld" magic value ║ | |
╟────────┼───────────────────────────────────────────────────────────────────────────────────────╢ | |
║ 4 │ 32-Bit BE unsigned integer (width) ║ | |
╟────────┼───────────────────────────────────────────────────────────────────────────────────────╢ | |
║ 4 │ 32-Bit BE unsigned integer (height) ║ | |
╟────────┼───────────────────────────────────────────────────────────────────────────────────────╢ | |
║ [2222] │ 4⋅8-Bit BE unsigned integers [RGBA] / pixel, interleaved with UTF-32 bytes, row-major ║ |
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 is part of AdrianParvin. | |
-- | | |
-- | AdrianParvin is free software: you can redistribute it and/or modify | |
-- | it under the terms of the GNU General Public License as published by | |
-- | the Free Software Foundation, either version 3 of the License, or | |
-- | (at your option) any later version. | |
-- | | |
-- | AdrianParvin is distributed in the hope that it will be useful, | |
-- | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
-- | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
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
string = "s7 test" | |
for k, v in string.gmatch(string, "(%S+)%s(%S+)") do | |
_G[k] = v | |
end | |
print(s7) |
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
string = "s7 test" | |
for k, v in string.gmatch(string, "(%S+)%s(%S+)") do | |
_G[k] = v | |
end | |
print(s7) |
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, ... }: | |
{ | |
imports = [ { nix.binaryCachePublicKeys = [ "uwu" ]; } ]; | |
boot.loader.grub.enable = false; | |
fileSystems."/".device = "x"; | |
nixpkgs.config.overlays = self: super: { | |
bootstrapFiles = {}; | |
stdenv = super.stdenv // { | |
# bootstrapTools = abort "blargh"; |
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
nixops create ./ops/config.nix ./ops/ec2.nix -d deployment |