From 0a7b41284df1b7c124197f89935d37f2d902ee98 Mon Sep 17 00:00:00 2001 From: Griffin Smith Date: Mon, 8 Jun 2020 10:20:00 -0400 Subject: [PATCH] convert hardcoded functions to new functions option --- home/modules/development/urbint.nix | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/home/modules/development/urbint.nix b/home/modules/development/urbint.nix index 4bf39b656..63f92bf50 100644 --- a/home/modules/development/urbint.nix +++ b/home/modules/development/urbint.nix @@ -25,16 +25,10 @@ in amerge = "alembic merge heads"; }; - initExtra = '' - # Alembic {{{ - function aup() { - alembic upgrade ''${1:-head} - } - - function adown() { - alembic downgrade ''${1:--1} - } - ''; + functions = { + aup = "alembic upgrade \${1:-head}"; + adown = "alembic downgrade \${1:--1}"; + }; }; programs.git = {