Add treefmt

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2025-02-16 18:53:11 +00:00
parent 22c82653dd
commit 2888bb8b72
70 changed files with 414 additions and 291 deletions

View File

@@ -1,3 +1,5 @@
# shellcheck shell=bash
if [[ "$EUID" -ne 0 ]]; then
echo "Please run the script as root."
exit 1

View File

@@ -13,8 +13,6 @@
];
home-manager.sharedModules = [
{
programs.zsh.initExtra = builtins.readFile ./backup.completion.zsh;
}
{ programs.zsh.initExtra = builtins.readFile ./backup.completion.zsh; }
];
}

View File

@@ -14,9 +14,5 @@
config.environment.persistence."/persist"."/var/lib/bluetooth".mount
];
home-manager.sharedModules = [
{
services.mpris-proxy.enable = config.services.pipewire.enable;
}
];
home-manager.sharedModules = [ { services.mpris-proxy.enable = config.services.pipewire.enable; } ];
}

View File

@@ -1,3 +1,6 @@
# shellcheck shell=bash
# shellcheck disable=SC2154
echo "Starting impermanence mount with source: $source, target: $target, path: $path."
source_current="$source"

View File

@@ -1,3 +1,6 @@
# shellcheck shell=bash
# shellcheck disable=SC2154
echo "Stopping impermanence mount with source: $source, target: $target, path: $path."
source_current="$source"

View File

@@ -1,3 +1,5 @@
# shellcheck shell=bash
delete_subvolume_recursively() {
IFS=$'\n'
for i in $(btrfs subvolume list -o "$1" | cut -f 9- -d ' '); do

View File

@@ -1,3 +1,5 @@
# shellcheck shell=bash
if [[ "${EUID}" -ne 0 ]]; then
echo "Please run the script as root."
exit 1

View File

@@ -15,8 +15,6 @@
];
home-manager.sharedModules = [
{
programs.zsh.initExtra = builtins.readFile ./install.completion.zsh;
}
{ programs.zsh.initExtra = builtins.readFile ./install.completion.zsh; }
];
}

View File

@@ -1,3 +1,5 @@
# shellcheck shell=bash
usage() {
echo "Usage: $0 flake -m install|repair -h host [-k key] [-p password_file] [-c] [-r]"
echo

View File

@@ -1,3 +1,5 @@
# shellcheck shell=bash
SEARCH_STRINGS=(
"Mouse"
"Razer DeathAdder V3 HyperSpeed"
@@ -6,8 +8,9 @@ SEARCH_STRINGS=(
for search_string in "${SEARCH_STRINGS[@]}"; do
echo "Searching for devices matching: $search_string"
for f in $(grep -l "$search_string" /sys/bus/usb/devices/*/product 2>/dev/null | sed "s/product/power\\/control/"); do
echo "Setting power control to 'on' for: $f"
echo on >| "$f"
grep -l "$search_string" /sys/bus/usb/devices/*/product 2>/dev/null | sed "s/product/power\\/control/" | while IFS= read -r device
do
echo "Setting power control to 'on' for: $device"
echo on >| "$device"
done
done

View File

@@ -1,3 +1,5 @@
# shellcheck shell=bash
case "$2" in
connectivity-change)
if timezone=$(curl --fail https://ipapi.co/timezone); then