NixOS + home-manager configs, mirrored from GitLab SaaS. gitlab.com/andreijiroh-dev/nixops-config
nix-flake nixos home-manager nixpkgs nix-flakes
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore: cook up with an utility script for Coolify Docker Compose stuff

Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.dev>

+21 -28
+3
.envrc
··· 1 + #!/usr/bin/env bash 2 + # make utility scripts at ./bin directory available via direnv 3 + export PATH="${PATH}:${PWD}/bin"
-27
.profile
··· 1 - # ~/.profile: executed by the command interpreter for login shells. 2 - # This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login 3 - # exists. 4 - # see /usr/share/doc/bash/examples/startup-files for examples. 5 - # the files are located in the bash-doc package. 6 - 7 - # the default umask is set in /etc/profile; for setting the umask 8 - # for ssh logins, install and configure the libpam-umask package. 9 - #umask 022 10 - 11 - # if running bash 12 - if [ -n "$BASH_VERSION" ]; then 13 - # include .bashrc if it exists 14 - if [ -f "$HOME/.bashrc" ]; then 15 - . "$HOME/.bashrc" 16 - fi 17 - fi 18 - 19 - # set PATH so it includes user's private bin if it exists 20 - if [ -d "$HOME/bin" ] ; then 21 - PATH="$HOME/bin:$PATH" 22 - fi 23 - 24 - # set PATH so it includes user's private bin if it exists 25 - if [ -d "$HOME/.local/bin" ] ; then 26 - PATH="$HOME/.local/bin:$PATH" 27 - fi
+6 -1
hosts/lairland/configuration.nix
··· 74 74 # enable = true; 75 75 # enableSSHSupport = true; 76 76 # }; 77 - } 77 + 78 + # Used by ../../bin/coolify-compose script 79 + environment.variables = { 80 + COOLIFY_DIR = "/opt/docker-data/coolify"; 81 + }; 82 + }
+12
scripts/coolify-compose
··· 1 + #!/usr/bin/env bash 2 + # SPDX-License-Identifier: MPL-2.0 3 + # Wrapper script for managing Coolify Docker Compose setup without needing 4 + # to copy-paste from the Coolify docs. 5 + 6 + COOLIFY_DIR=${COOLIFY_DIR:-"/data/coolify"} 7 + COOLIFY_SOURCE_DIR="${COOLIFY_DIR}/source" 8 + 9 + docker compose --env-file "${COOLIFY_SOURCE_DIR}/.env" \ 10 + -f "${COOLIFY_SOURCE_DIR}/docker-compose.yml" \ 11 + -f "${COOLIFY_SOURCE_DIR}/docker-compose.prod.yml" \ 12 + "$@"