You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sudo --preserve-env sops $NIXOS_CONFIG_PATH/secrets/
# not in direnv
env SOPS_AGE_KEY_FILE=/persist/sops-nix-key.txt sudo --preserve-env sops $NIXOS_CONFIG_PATH/secrets/
# without sudo
su --preserve-environment -c "env SOPS_AGE_KEY_FILE=/persist/sops-nix-key.txt sops $NIXOS_CONFIG_PATH/secrets/infra.yaml"
build image
cd$NIXOS_CONFIG_PATH
sudo mkdir /ventoy
# eg /dev/sdb1
sudo mount /dev/---disc-name--- /ventoy
# build image
sudo nix build .#images.minimal-installer# move iso to usb
cp -rl $(eza --sort changed result/iso/*.iso | tail -n1) /ventoy
fetch official iso(s)
functiondownloadfile {
# resolve url redirect to get a more specific linklocal url=$(curl -ils -o /dev/null -w %{url_effective} \"$1\")# curl said url and use the filename of it
curl -jol \"$url\"
}
functiondownloadofficialiso {
downloadfile \ "https://channels.nixos.org/nixos-24.05/latest-nixos-$1-x86_64-linux.iso"
}
downloadofficialiso minimal
downloadofficialiso gnome
downloadofficialiso plasma6
get logs
systemctl --user status
journalctl -xeu home-manager-upidapi.service
format traces
# replace the folowing with something else
<code>
<primop>
<primop-app>
<lambda>
«repeated»
good="""\https://github.com/nobbz/nixos-confighttps://github.com/fufexan/dotfileshttps://github.com/mitchellh/nixos-confighttps://github.com/mic92/dotfileshttps://github.com/workflow/dotfileshttps://github.com/notohh/snowflakehttps://github.com/misterio77/nix-confighttps://github.com/hlissner/dotfileshttps://github.com/gvolpe/nix-confighttps://github.com/notashelf/nyx\"""good= [
x.strip()[len("https://github.com/"):]
forxingood.split("\n")
ifx.strip() !=""
]
repos=" OR ".join([f"repo:{x}"forxingood])
print(f"lang:nix ({repos})")
# lang:nix (repo:nobbz/nixos-config OR repo:fufexan/dotfiles OR repo:mitchellh/nixos-config OR repo:mic92/dotfiles OR repo:workflow/dotfiles OR repo:notohh/snowflake OR repo:misterio77/nix-config OR repo:hlissner/dotfiles OR repo:gvolpe/nix-config OR repo:notashelf/nyx)