From 3d76346b0b5ecf6a08f8dbe68582aec5464dbfdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 21 Jul 2022 10:44:13 +0200 Subject: Add simple script to create flake for development environment --- install | 1 + local/bin/new-flake-dev | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100755 local/bin/new-flake-dev diff --git a/install b/install index d17d698..23887a1 100755 --- a/install +++ b/install @@ -60,6 +60,7 @@ if ask "dev" "Development tools configuration"; then inst flake8 ~/.flake8 inst pylintrc ~/.pylintrc inst config/mypy/ ~/.config/mypy + inst local/bin/new-flake-dev ~/.local/bin/new-flake-dev fi if ask "sync" "Install synchronization"; then diff --git a/local/bin/new-flake-dev b/local/bin/new-flake-dev new file mode 100755 index 0000000..a45c86d --- /dev/null +++ b/local/bin/new-flake-dev @@ -0,0 +1,29 @@ +#!/usr/bin/env bash +set -eu +if [ -f ./flake.nix ]; then + echo "There is already existing flake.nix file!" >&2 + exit 1 +fi +cat >./flake.nix <