added AGENTS.md
This commit is contained in:
@@ -8,7 +8,14 @@ export XAUTHORITY=$HOME/.Xauthority
|
||||
|
||||
cd ~
|
||||
|
||||
# nix build hosts
|
||||
### mize aliases
|
||||
alias mg="mize get"
|
||||
alias mr="mize run"
|
||||
alias ms="mize set"
|
||||
alias md="mize run dev"
|
||||
alias sci="mize run sci"
|
||||
|
||||
### nix build hosts
|
||||
export acern="ssh://acern x86_64-linux,aarch64-linux - 20 10 big-parallel - -"
|
||||
export fe="ssh://fe x86_64-linux,aarch64-linux - 20 10 big-parallel - -"
|
||||
export fusu="ssh://fusu x86_64-linux,aarch64-linux - 20 10 big-parallel - -"
|
||||
@@ -16,7 +23,7 @@ export mac="ssh://mac x86_64-linux,aarch64-linux - 8 5 big-parallel - -"
|
||||
export mosatop="ssh://mosatop x86_64-linux,aarch64-linux - 8 5 big-parallel - -"
|
||||
export hpm="ssh://hpm x86_64-linux,aarch64-linux - 8 5 big-parallel - -"
|
||||
|
||||
## ssh completions
|
||||
### ssh completions
|
||||
_ssh_completion() {
|
||||
local cur prev opts
|
||||
COMPREPLY=()
|
||||
@@ -27,7 +34,30 @@ _ssh_completion() {
|
||||
COMPREPLY=( $(compgen -W "$opts" -- "$cur") )
|
||||
return 0
|
||||
}
|
||||
complete -F _ssh_completion ssh scp sftp
|
||||
_scp_completion() {
|
||||
local cur opts
|
||||
COMPREPLY=()
|
||||
cur="${COMP_WORDS[COMP_CWORD]}"
|
||||
local OLD_WORDBREAKS=$COMP_WORDBREAKS
|
||||
COMP_WORDBREAKS=${COMP_WORDBREAKS//:/}
|
||||
|
||||
|
||||
# 2. Generate host choices using your existing logic
|
||||
opts=$(awk '/^Host / && $2 !~ /[*?]/ {print $2}' $CONFIG_DIR/hosts/main/ssh_config 2>/dev/null; \
|
||||
awk '{split($1,a,","); print a[1]}' ~/.ssh/known_hosts 2>/dev/null | tr -d '[]')
|
||||
|
||||
|
||||
# 3. Combine both hosts and local files into the initial completion pool
|
||||
# This allows typing 'sc[TAB]' to see both local files and your SSH hosts.
|
||||
COMPREPLY=( $(compgen -S ":" -W "$opts" -- "$cur") $(compgen -f -- "$cur") )
|
||||
|
||||
# Enable filename formatting so local directory trailing slashes work
|
||||
compopt -o filenames 2>/dev/null
|
||||
return 0
|
||||
|
||||
}
|
||||
complete -F _ssh_completion ssh sftp
|
||||
complete -F _scp_completion -o nospace scp
|
||||
|
||||
|
||||
# my prompt
|
||||
|
||||
@@ -284,6 +284,7 @@ in {
|
||||
}
|
||||
];
|
||||
config = { config, pkgs, lib, ... }: {
|
||||
environment.systemPackages = [ pkgs.tmux ];
|
||||
imports = [
|
||||
./fesu-hosting-base.nix
|
||||
];
|
||||
@@ -296,13 +297,10 @@ in {
|
||||
];
|
||||
};
|
||||
systemd.services.ppc = {
|
||||
environment = {
|
||||
MIZE_CONFIG_FILES = "/root/host/ppc-website-config.toml";
|
||||
};
|
||||
description = "PPC Website";
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
serviceConfig = {
|
||||
ExecStart = "/root/host/ppc-src/target/release/mize run";
|
||||
ExecStart = "/root/host/mize --config /root/host/ppc-website-config.toml run";
|
||||
Restart = "always";
|
||||
};
|
||||
};
|
||||
@@ -482,6 +480,7 @@ in {
|
||||
{ name = "oxi"; domain = "oxi.ppc.social"; host = "ppc-hosting"; port = 8009; }
|
||||
{ name = "c2vi-tunes"; domain = "tunes.c2vi.dev"; host = "fasu"; port = 8001; middlewares = [ "oidc-c2vi-navidrome" ]; }
|
||||
{ name = "c2vi-lidarr"; domain = "lidarr.c2vi.dev"; host = "fasu"; port = 8000; middlewares = [ "oidc-c2vi-lidarr" ]; }
|
||||
{ name = "c2vi-spot"; domain = "spot.c2vi.dev"; host = "fasu"; port = 8006; middlewares = [ "oidc-c2vi-lidarr" ]; }
|
||||
|
||||
#{ name = "spacetime"; domain = "spacetime.ppc.social"; host = "ppc-hosting"; port = 8005; extraRouterConfig = {
|
||||
# rule = "Host(`spacetime.ppc.social`) && PathPrefix(`/v1/database`)";
|
||||
|
||||
Reference in New Issue
Block a user