Skip to content

Instantly share code, notes, and snippets.

@Taeradan
Taeradan / lib.nix
Last active May 25, 2017 00:11
recursiveUpdate error
{lib}:
let
profiles = {
isDesktopEnvironment = {
awesome = true;
internetSuite = true;
multimediaSuite = true;
officeSuite = true;
pulseaudio = true;
securitySuite = true;
{ config, lib, pkgs, ... }:
let
inherit (lib) mkIf mkMerge mkThenElse;
cfg = config.r6d.config-generator;
computers = config.r6d.computers;
profiles = config.r6d.profiles;
in
{
error: while evaluating the attribute ‘config’ at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/nixos/lib/eval-config.nix:53:5:
while evaluating the attribute ‘config’ at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:85:25:
while evaluating ‘yieldConfig’ at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:72:29, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:71:16$
while evaluating ‘mergeModules’ at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:188:26, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:62:$
7:
while evaluating ‘mergeModules'’ at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:192:36, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:18$:5:
while evaluating ‘concatMap’ at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/lists.nix:96:18, called fro
@Taeradan
Taeradan / default.nix
Created March 25, 2017 01:07
trying conditional imports
{ config, lib, pkgs, ... }:
let
inherit (lib) mkIf mkMerge mkThenElse;
cfg = config.r6d.config-generator;
computers = config.r6d.computers;
profiles = config.r6d.profiles;
in
mkIf true {
PANDOC = pandoc
%.html: %.md style.css Makefile
$(PANDOC) -c style.css -s -f markdown -t html --standalone -o $@ $<
%.odt: %.md Makefile
$(PANDOC) --standalone -f markdown -t odt -o $@ $<
%.epub: %.md Makefile
$(PANDOC) -o $@ $<
@Taeradan
Taeradan / Makefile
Last active December 15, 2015 17:49 — forked from anonymous/make file
%.mkd.pdf: %.mkd jpp.beamer jpp.latex
@echo "\t $< --> $@"
@${PANDOC} ${PANDOC_OPTIONS} -s "$<" -o "$@" >> /dev/null
spell:
@for f in *.mkd; do aspell check "$$f"; done
@Taeradan
Taeradan / Makefile
Last active December 15, 2015 17:49 — forked from anonymous/make file
EXE_dia=hello_dia.txt
SRC_dia= $(wildcard *.dia)
OBJ_dia= $(SRC_dia:.dia=_dia.pdf)
EXE_dot=hello_dot.txt
SRC_dot= $(wildcard *.dot)
OBJ_dot= $(SRC_dot:.dot=_dot.pdf)
all: dia graphviz web