diff options
author | Griffin Smith <root@gws.fyi> | 2020-06-08T14·20-0400 |
---|---|---|
committer | Griffin Smith <root@gws.fyi> | 2020-06-08T14·20-0400 |
commit | 0a7b41284df1b7c124197f89935d37f2d902ee98 (patch) | |
tree | 8be3ea8034ded5aaca86b724c1104be72f0e0dbd /home/modules/development/urbint.nix | |
parent | f48477cfdb9cbf7d6e185e91af050c5202033911 (diff) |
convert hardcoded functions to new functions option
Diffstat (limited to 'home/modules/development/urbint.nix')
-rw-r--r-- | home/modules/development/urbint.nix | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/home/modules/development/urbint.nix b/home/modules/development/urbint.nix index 4bf39b656f58..63f92bf50d4e 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 = { |