Site Tools


onny:notizen

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
onny:notizen [2026/03/22 09:23] – [age] 10.250.0.1onny:notizen [2026/03/24 14:19] (current) – [nixops] 10.250.0.1
Line 1618: Line 1618:
 </code> </code>
  
-==== nixops ====+==== flake ====
  
-setup +local file path as flake input 
-<file - /etc/nixos/configuration.nix+<code
-virtualisation.libvirtd.enable true; +inputs.verwaltungstracker.url = "path:/home/onny/projects/verwaltungstracker";
-users.extraUsers.myuser.extraGroups = [ "libvirtd" ]; +
-</file> +
- +
-<code bash> +
-nix-env -iA nixos-unstable.nixopsUnstable +
-sudo mkdir /var/lib/libvirt/images +
-sudo chgrp libvirtd /var/lib/libvirt/images +
-sudo chmod g+w /var/lib/libvirt/images +
-sudo virsh pool-define-as default dir --target /var/lib/libvirt/images +
-sudo virsh pool-autostart default +
-sudo virsh pool-start default +
-nixops create -d example-libvirtd examples/trivial-virtd.nix +
-nixops deploy -d example-libvirtd +
-nixops list +
-</code> +
- +
-connect to instance (deployment name: example-libvirtd, machine name: machine) +
-<code bash> +
-nixops ssh -d example-libvirtd machine +
-</code> +
- +
-delete deployment, delete machine +
-<code bash> +
-nixops delete -d example-libvirtd +
- +
-nixops destroy --include nix-http +
-</code> +
- +
-start, stop destroy machine foo +
-<code bash> +
-nixops start --include foo +
-nixops stop --include foo +
-nixops destroy --include foo +
-</code> +
- +
-list machines +
-<code bash> +
-nixops info+
 </code> </code>
 ===== filesystem ===== ===== filesystem =====
onny/notizen.txt · Last modified: by 10.250.0.1