mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 18:19:09 +00:00
![Gabriel Arazas](/assets/img/avatar_default.png)
I think this is better for separating modules explicitly. This is also considered as there are similar objects between modules (e.g., NixOS and home-manager modules and users). Revert users module to old position
13 lines
247 B
Bash
Executable File
13 lines
247 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -eo pipefail
|
|
|
|
TEMPLATES_DIR="$HOME/templates"
|
|
|
|
while [[ ! -a "$TEMPLATES_DIR/$TEMPLATE/cookiecutter.json" ]]
|
|
do
|
|
TEMPLATE="$TEMPLATE/$(ls "$TEMPLATES_DIR/$TEMPLATE" | fzf)"
|
|
done
|
|
|
|
cookiecutter "$TEMPLATES_DIR/$TEMPLATE"
|