onny:notizen
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| onny:notizen [2026/03/22 09:23] – [age] 10.250.0.1 | onny:notizen [2026/03/24 14:19] (current) – [nixops] 10.250.0.1 | ||
|---|---|---|---|
| Line 1618: | Line 1618: | ||
| </ | </ | ||
| - | ==== nixops | + | ==== flake ==== |
| - | setup | + | local file path as flake input |
| - | <file - / | + | <code> |
| - | virtualisation.libvirtd.enable | + | 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/ | + | |
| - | sudo chgrp libvirtd / | + | |
| - | sudo chmod g+w / | + | |
| - | sudo virsh pool-define-as default dir --target / | + | |
| - | sudo virsh pool-autostart default | + | |
| - | sudo virsh pool-start default | + | |
| - | nixops create -d example-libvirtd examples/ | + | |
| - | nixops deploy -d example-libvirtd | + | |
| - | nixops list | + | |
| - | </ | + | |
| - | + | ||
| - | connect to instance (deployment name: example-libvirtd, | + | |
| - | <code bash> | + | |
| - | nixops ssh -d example-libvirtd machine | + | |
| - | </ | + | |
| - | + | ||
| - | delete deployment, delete machine | + | |
| - | <code bash> | + | |
| - | nixops delete -d example-libvirtd | + | |
| - | + | ||
| - | nixops destroy --include nix-http | + | |
| - | </ | + | |
| - | + | ||
| - | start, stop destroy machine foo | + | |
| - | <code bash> | + | |
| - | nixops start --include foo | + | |
| - | nixops stop --include foo | + | |
| - | nixops destroy --include foo | + | |
| - | </ | + | |
| - | + | ||
| - | list machines | + | |
| - | <code bash> | + | |
| - | nixops info | + | |
| </ | </ | ||
| ===== filesystem ===== | ===== filesystem ===== | ||
onny/notizen.txt · Last modified: by 10.250.0.1
