Start moving emacs configuration to nix.
This commit is contained in:
parent
0d9fa5b37e
commit
986ca7f5cd
11 changed files with 841 additions and 67 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue