Skip to content

iharh/nixcfg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prerequisites

Install the following

  • ovmf
  • qemu-utils
  • virt-viewer
  • libxapp-dev
  • dnsmasq

fix-permission-error

setfacl -m u:libvirt-qemu:x $HOME
getfacl $HOME

setting up the network bridge

sudo virsh net-start default
virsh net-list --all
brctl show

preparing vm

sh/nix/prepare-virt.sh

installing from ISO (inside vm)

create ~/.config/sops/age/keys.txt
???
https://github.com/disassembler/network
ssh root@host "cat /etc/ssh/ssh_host_rsa_key" | ssh-to-pgp -o nixos/secrets/keys/host.asc
???

export GH_TOKEN=...your-own-token...
nix-env -iA nixos.ripgrep nixos.nixFlakes nixos.gitMinimal nixos.gh nixos.neovim
gh repo clone iharh/nixcfg
cd nixcfg
gh repo sync
sh/nix/prepare-disko.sh
cat /mnt/etc/nixos/hardware-configuration.nix
cat /mnt/etc/nixos/configuration.nix
sh/nix/inst-nixos.sh
find /mnt/boot
sudo poweroff

correcting vm

virsh undefine nixos --snapshots-metadata --checkpoints-metadata
sh/nix/prepare-final.sh

rebiulding (inside vm)

nix-env -iA nixos.ripgrep nixos.nixFlakes nixos.gitMinimal nixos.gh nixos.neovim
create ~/.config/sops/age/keys.txt
export GH_TOKEN=...your-own-token... or 
gh repo clone iharh/nixcfg
cd nixcfg
gh repo sync
sh/ih/rebuild-nixos.sh

Keys

  • Ctrl+Alt Host key at virt-viewer
  • C-] To exit the console, hold the CTRL key and press ], then press Enter.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published