summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2015-11-09 18:34:02 +0100
committertv <tv@krebsco.de>2015-11-09 18:34:02 +0100
commit1f4d7ffa50483cde6024fe910fb16d0c8040e245 (patch)
treea190bfaf668a3a4d10f2bb22b140d3601177db49
parent2263c04e7c95caa5c21fb80952a19916eace5a3e (diff)
tv git: move old stuff to the museum section
-rw-r--r--krebs/4lib/default.nix3
-rw-r--r--tv/2configs/git.nix14
2 files changed, 11 insertions, 6 deletions
diff --git a/krebs/4lib/default.nix b/krebs/4lib/default.nix
index f907fe87..3f27ea89 100644
--- a/krebs/4lib/default.nix
+++ b/krebs/4lib/default.nix
@@ -30,4 +30,7 @@ rec {
subdirsOf = path:
mapAttrs (name: _: path + "/${name}")
(filterAttrs (_: eq "directory") (readDir path));
+
+ mapAttrValues = f: mapAttrs (_: f);
+ setAttr = name: value: set: set // { ${name} = value; };
}
diff --git a/tv/2configs/git.nix b/tv/2configs/git.nix
index ff5bedce..3c0524b3 100644
--- a/tv/2configs/git.nix
+++ b/tv/2configs/git.nix
@@ -20,26 +20,22 @@ let
rules = concatMap make-rules (attrValues repos);
public-repos = mapAttrs make-public-repo ({
+ } // mapAttrValues (setAttr "section" "1. Miscellaneous") {
cac = {
desc = "CloudAtCost command line interface";
};
- cgserver = {};
- crude-mail-setup = {};
- dot-xmonad = {};
get = {};
hack = {};
load-env = {};
make-snapshot = {};
much = {};
- nixos-infest = {};
nixpkgs = {};
- painload = {};
push = {};
regfish = {};
stockholm = {
desc = "take all the computers hostage, they'll love you!";
};
- } // mapAttrs (_: repo: repo // { section = "Haskell libraries"; }) {
+ } // mapAttrValues (setAttr "section" "2. Haskell libraries") {
blessings = {};
mime = {};
quipper = {};
@@ -48,6 +44,12 @@ let
web-routes-wai-custom = {};
xintmap = {};
xmonad-stockholm = {};
+ } // mapAttrValues (setAttr "section" "3. Museum") {
+ cgserver = {};
+ crude-mail-setup = {};
+ dot-xmonad = {};
+ nixos-infest = {};
+ painload = {};
});
restricted-repos = mapAttrs make-restricted-repo (