From 65f267e9fc72eb4ad5f6a9d46b3fd228dc468a5c Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Sun, 25 Dec 2022 08:35:37 +0000 Subject: [PATCH] Update 2 files - /home/.chezmoiscripts/linux/run_onchange_before_10-system-tweaks - /home/.chezmoiscripts/linux/run_onchange_before_configure-swap --- .../.chezmoiscripts/linux/run_onchange_before_10-system-tweaks | 3 +++ home/.chezmoiscripts/linux/run_onchange_before_configure-swap | 3 +++ 2 files changed, 6 insertions(+) diff --git a/home/.chezmoiscripts/linux/run_onchange_before_10-system-tweaks b/home/.chezmoiscripts/linux/run_onchange_before_10-system-tweaks index 232cb41e..af687e9f 100644 --- a/home/.chezmoiscripts/linux/run_onchange_before_10-system-tweaks +++ b/home/.chezmoiscripts/linux/run_onchange_before_10-system-tweaks @@ -1,5 +1,8 @@ #!/usr/bin/env bash +{{ includeTemplate "universal/profile" }} +{{ includeTemplate "universal/logg" }} + ### Set hostname (if redefined) if command -v hostnamectl > /dev/null; then # Betelgeuse is the default hostname so only change when it is different diff --git a/home/.chezmoiscripts/linux/run_onchange_before_configure-swap b/home/.chezmoiscripts/linux/run_onchange_before_configure-swap index 59013cd6..b032c487 100644 --- a/home/.chezmoiscripts/linux/run_onchange_before_configure-swap +++ b/home/.chezmoiscripts/linux/run_onchange_before_configure-swap @@ -1,6 +1,9 @@ #!/usr/bin/env bash # TODO - make equivalent to https://gitlab.com/megabyte-labs/gas-station/-/blob/master/roles/system/common/tasks/linux/swap.yml +{{ includeTemplate "universal/profile" }} +{{ includeTemplate "universal/logg" }} + MEMORY_IN_KB="$(grep MemTotal /proc/meminfo | sed 's/.* \(\d+\) kB/\1/')" MEMORY_IN_GB="$((MEMORY_IN_KB / 1024 / 1024))"