From 7af03d5dae337820dd96795306ceb4394f6e802e Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Fri, 30 May 2025 20:45:44 +0200 Subject: modules/river: Move the `river-start` package into the module The package was already tied to the module (via the log file path) and as such should be in the module directory. --- modules/by-name/ri/river/river-start/river-start.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 modules/by-name/ri/river/river-start/river-start.sh (limited to 'modules/by-name/ri/river/river-start/river-start.sh') diff --git a/modules/by-name/ri/river/river-start/river-start.sh b/modules/by-name/ri/river/river-start/river-start.sh new file mode 100755 index 00000000..e3a4adcb --- /dev/null +++ b/modules/by-name/ri/river/river-start/river-start.sh @@ -0,0 +1,20 @@ +#! /usr/bin/env sh + +# nixos-config - My current NixOS configuration +# +# Copyright (C) 2025 Benedikt Peetz +# SPDX-License-Identifier: GPL-3.0-or-later +# +# This file is part of my nixos-config. +# +# You should have received a copy of the License along with this program. +# If not, see . + +# NOTE: Keep this in sync with the file from `base_init.sh` <2025-02-03> +RIVER_LOG_FILE="$HOME/.local/share/river/log" + +[ -d "$(dirname "$RIVER_LOG_FILE")" ] || mkdir --parents "$(dirname "$RIVER_LOG_FILE")" + +exec river -log-level info >"$RIVER_LOG_FILE" 2>&1 + +# vim: ft=sh -- cgit 1.4.1