doc: server git pull without PATH, keep flakes bootstrap config in repo
- nixos-server.nix: comment for pull when sudo git not found - readme: add 'Pull when git is not in PATH' and full-path fallback - add server-configuration-with-flakes.nix for one-time scp to enable flakes Made-with: Cursor
This commit is contained in:
parent
bfe7ae5622
commit
2265cdcaff
3 changed files with 28 additions and 0 deletions
|
|
@ -3,6 +3,7 @@
|
|||
# One-time on server: clone repo to /etc/dotfiles (root needs git access).
|
||||
# If private repo: use SSH (ssh:// or git@) and add root's key to GitHub, or use HTTPS + token.
|
||||
# Then: sudo nixos-rebuild switch --flake /etc/dotfiles/nixos#nixos-server
|
||||
# If sudo git is not found: sudo nix run nixpkgs#git -- -C /etc/dotfiles pull origin main
|
||||
# Timer runs every 15 min: git fetch, pull if origin/main changed, rebuild.
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue