Start moving emacs configuration to nix.

This commit is contained in:
Kevin Baensch 2019-11-11 18:41:30 +01:00
parent 0d9fa5b37e
commit 986ca7f5cd
11 changed files with 841 additions and 67 deletions

View file

@ -5,9 +5,10 @@ with lib;
let
cfg = config.machine;
metapkgs = (lists.forEach
(attrNames (filterAttrs (n: v: v == "regular" ) (readDir ../pkgs/pkgsets)))
(v: replaceStrings [ ".nix" ] [ "" ] v));
fn = import (toString ../fn.nix) { inherit lib; };
metapkgs = let
pPath = (toString ./../pkgs/pkgsets);
in (lists.forEach (fn.lsfRec pPath true) (v: replaceStrings [ "${pPath}/" "/" ".nix" ] [ "" "::" "" ] v));
pkgOption = pname: {
name = pname;
value = rec {