aboutsummaryrefslogtreecommitdiff
path: root/cfg
diff options
context:
space:
mode:
authorMasaya Tojo <masaya@tojo.tokyo>2021-07-31 20:02:21 +0900
committerMasaya Tojo <masaya@tojo.tokyo>2021-07-31 21:30:56 +0900
commit78bf995193a98fc341b68ba19c47000ae6f997c8 (patch)
tree7e4b8fddd48d48647e7c5c920ea3f9e19dc4014f /cfg
parent2a59080328283ffae02e1aae3f73e1880f4412eb (diff)
Add `before` script.
Diffstat (limited to 'cfg')
-rwxr-xr-xcfg/before11
1 files changed, 11 insertions, 0 deletions
diff --git a/cfg/before b/cfg/before
new file mode 100755
index 0000000..374ddd4
--- /dev/null
+++ b/cfg/before
@@ -0,0 +1,11 @@
+#!/bin/sh
+set -eu
+
+PATH="${PATH}:/run/current-system/profile/bin:/run/current-system/profile/sbin"
+
+GUIX_PROFILE="/var/lib/laminar/.config/guix/current"
+. "$GUIX_PROFILE/etc/profile"
+
+env | while read kv; do
+ laminarc set "$kv"
+done