about summary refs log tree commit diff stats
path: root/common
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-06-11 08:00:45 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-06-11 08:00:45 +0200
commite4a334234b91f230571b5111a2b698230b27c660 (patch)
tree7545deca502c7ef7f676fc689f8caaeee6e19801 /common
parentchore(templates/rust): Quickly Update [THIS WILL BE REBASED] (diff)
downloadflake-templates-e4a334234b91f230571b5111a2b698230b27c660.tar.gz
flake-templates-e4a334234b91f230571b5111a2b698230b27c660.zip
refactor(common): Use symlinks to state, which files should be replaced
Every symlink in the `./templates` directory is now replaced with
the file it points to, making it obvious that this file should not be
edited.
Diffstat (limited to 'common')
-rw-r--r--common/default.nix39
1 files changed, 0 insertions, 39 deletions
diff --git a/common/default.nix b/common/default.nix
deleted file mode 100644
index 484ac38..0000000
--- a/common/default.nix
+++ /dev/null
@@ -1,39 +0,0 @@
-# This file specifies which files in the `./common` directory should be copied to which
-# template in `./templates`
-let
-  programmingLanguages = [
-    "awk"
-    "c"
-    "rust"
-    "shell"
-  ];
-  allLanguages =
-    programmingLanguages
-    ++ [
-      "latex"
-    ];
-  mkName = name: "./${name}";
-
-  mkBase = name: langs: {
-    "${mkName name}" = langs;
-  };
-
-  mkLang = name: lang: let
-    realLang =
-      if builtins.elem lang allLanguages
-      then lang
-      else builtins.throw "${lang} is not a recognized language!";
-  in
-    mkBase name [realLang];
-  mkProgramming = name:
-    mkBase name programmingLanguages;
-  mkAll = name:
-    mkBase name allLanguages;
-in
-  {}
-  // (mkAll ".licensure.yml")
-  // (mkAll "init")
-  // (mkAll "scripts/renew_copyright_header.sh")
-  // (mkAll "shell_line_editor.sh")
-  // (mkAll "treefmt.nix")
-  // (mkProgramming "docs/%INIT_APPLICATION_NAME.1.md")