This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: second | |
namespace: default | |
labels: | |
app.kubernetes.io/name: second | |
app.kubernetes.io/instance: second | |
spec: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
description = "example nixos/nix-darwin/home-manager/nix-droid flake"; | |
inputs = { | |
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; | |
darwin = { | |
url = "github:LnL7/nix-darwin/master"; | |
inputs.nixpkgs.follows = "nixpkgs"; | |
}; | |
home-manager = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Install F-Droid | |
if adb shell pm list packages | grep -q org.fdroid.fdroid | |
then | |
echo 'F-Droid already installed, skipping.' | |
else | |
echo 'Installing F-Droid.' | |
curl -o /tmp/F-Droid.apk https://f-droid.org/F-Droid.apk | |
adb install /tmp/F-Droid.apk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: k0sctl.k0sproject.io/v1beta1 | |
kind: Cluster | |
spec: | |
hosts: | |
- role: controller+worker | |
ssh: | |
address: 100.89.165.64 | |
user: nathanhywd | |
noTaints: true | |
privateInterface: tailscale0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ash | |
## Enable location, allow iSH to run in background | |
grep -q '/dev/location' $HOME/.profile || echo 'cat /dev/location > /dev/null &' >> $HOME/.profile && source $HOME/.profile | |
# Install my dependencies | |
apk update | |
apk add vim git coreutils openssh-client mosh tmux curl | |
# Setup tmux |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
programs.zsh.enable = true; | |
programs.zsh.enableAutosuggestions = true; | |
programs.zsh.envExtra = '' | |
export MYVAR="true" | |
export MYVAR2="false" | |
''; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
title="Battery" | |
battery_level="$(pmset -g batt | grep 'InternalBattery' | awk '{print $3 $4}' | awk '{print $1}' | cut -d';' -f1)" | |
osascript -e "display notification \"${battery_level}\" with title \"${title}\"" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Usage: macos-notify-send.sh "Title" "Message" | |
osascript -e "display notification \"$2\" with title \"$1\"" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ config, pkgs, ... }: | |
{ | |
#package config | |
nix.package = pkgs.nix; | |
nixpkgs.config.allowUnfree = true; | |
#homebrew packages | |
homebrew = { | |
enable = true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo steamos-readonly disable | |
sudo pacman -Sy --noconfirm wireguard-tools resolvconf | |
# Re-enable wireguard and sshd | |
sudo systemctl enable --now wireguard.service | |
sudo systemctl enable --now sshd.service | |
# Disable power-save so SSH commands aren't so delayed: https://gitlab.com/popsulfr/steam-deck-tricks#disable-powersave-on-wlan0-for-snappier-remote-command | |
sudo iw dev wlan0 set power_save off |