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
https://github.com/NixOS/nixpkgs/blob/master/pkgs/shells/bash/default.nix | |
-DDEFAULT_PATH_VALUE="/no-such-path" | |
bash source: | |
/* Now make our own defaults in case the vars that we think are | |
important are missing. */ | |
temp_var = set_if_not ("PATH", DEFAULT_PATH_VALUE); |
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
{ pkgs, ... }: | |
{ | |
services.udev.extraRules = '' | |
SUBSYSTEM!="sound", GOTO="pulseaudio_end" | |
ACTION!="change", GOTO="pulseaudio_end" | |
KERNEL!="card*", GOTO="pulseaudio_end" | |
SUBSYSTEMS=="pci", RESULT=="?*", ATTRS{vendor}=="0x1002", ATTRS{device}=="0x4383", ENV{PULSE_PROFILE_SET}="formula-z.conf" |
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 | |
pixfix = if (builtins.currentSystem == "armv6l-linux") then | |
[ ./pixman.nix ] | |
else | |
[]; | |
passwords = import ./passwords.nix; | |
keys = import ./keys.nix; | |
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
{ | |
packageOverrides = pkgs: rec { | |
qemu-user-arm = pkgs.callPackage ./qemu-user.nix { user_arch = "arm"; }; | |
qemu-user-arm64 = pkgs.callPackage ./qemu-user.nix { user_arch = "aarch64"; }; | |
nix = pkgs.stdenv.lib.overrideDerivation pkgs.nix (oldAttrs: { | |
patches = ./hax.patch; | |
}); | |
}; | |
} |
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
{ ... }: | |
{ | |
fileSystems = { | |
"/" = { | |
device = "UUID=d230cc98-8f33-457f-9fee-b65558165188"; | |
fsType = "ext4"; | |
iscsi = { | |
enable = true; | |
host = "192.168.2.61"; | |
lun = "iqn.2001-04.com.c2d-nix3"; |
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
{ ... }: | |
{ | |
imports = [ ./tgt_service.nix ]; | |
services = { | |
atftpd.enable = true; | |
atftpd.root = "/tftproot"; | |
tgtd = { | |
enable = true; | |
targets = { |
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, ... }: | |
{ | |
imports = [ ./default.nix /root/nixcfg/core.nix ]; | |
services = { | |
example = { | |
enable = true; | |
}; | |
}; | |
environment.systemPackages = with pkgs; [ wget tcpdump ltrace gdb ]; |
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
diff --git a/src/libstore/derivations.cc b/src/libstore/derivations.cc | |
index d9b009d..16348fb 100644 | |
--- a/src/libstore/derivations.cc | |
+++ b/src/libstore/derivations.cc | |
@@ -55,6 +55,10 @@ bool BasicDerivation::isBuiltin() const | |
bool BasicDerivation::canBuildLocally() const | |
{ | |
+ StringSet platforms = tokenizeString<StringSet>(settings.get("build-extra-platforms",string(""))); | |
+ |
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
# Edit this configuration file to define what should be installed on | |
# your system. Help is available in the configuration.nix(5) man page | |
# and in the NixOS manual (accessible by running ‘nixos-help’). | |
{ config, lib, pkgs, ... }: | |
let | |
local_dwm = lib.overrideDerivation pkgs.dwm (o: { | |
nativeBuildInputs = o.nativeBuildInputs ++ [ pkgs.xorg.libXcursor ]; | |
patches = [ |
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
let | |
ugly = { laptop = ./laptop.nix; desktop = ./desktop.nix; }; | |
in | |
{ | |
imports = [ ugly.${config.network.hostName} ]; | |
} |