Comments (2)
I use rsync -a --delete
because it removes the clutter, uses the standard fs hierarchy, and does it within a single invocation. It's not efficient, but adds maybe 30s to the process. I'm prioritizing simplicity here.
If you want to preserve the existing FS and just install once without copying, then yes, that would be a way to do it, but it would also require nixos-install to not be broken, as it currently is, by NixOS/nixpkgs#10230
My default use case is to fully replace the OS and throw away everything, since I only ever run this on freshly deployed images. If you have a different purpose, just fork this repo and change a few lines.
from nixos-infect.
Using nixos-lustrate now, instead of bindmount / rsync hacks.
from nixos-infect.
Related Issues (20)
- Does NOT work on DigitalOcean Droplet with Ubuntu 22.04 without `export doNetConf=y` HOT 4
- Intermittent 'ERROR: Missing bzcat' error
- nixos-infect crashes with a nix syntax error on scaleway instances
- Trimming SSH lines removes spaces from them HOT 1
- Hetzner Cloud IPv6 not working HOT 2
- wishlist: disk encryption HOT 2
- New lightsail instance use /dev/nvme0n1 instead of /dev/xvda as boot device HOT 1
- Does not work for Hetznercloud using cloud config HOT 1
- nixos-infect on Ionos HOT 3
- Tested on arubacloud: working with `doNetConf=y`
- nix-env errors about using a symlink path HOT 3
- No space left on device on nixos-rebuild HOT 3
- SSH key extraction doesn't work with ssh-import-id
- DigitalOcean: `rm: cannot remove '/boot/efi': Device or resource busy` HOT 4
- (Security/Privacy) Stop supporting Vultur, i.e. remove it from the readme HOT 1
- cannot find name for group ID 30000 HOT 4
- Hetnzer: Channel 24.05 not working HOT 4
- DigitalOcean: Incorrect network configuration
- Some way to get some files over to the new system?
- on digitalocean `sudo nixos-rebuild switch` produces no changes HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nixos-infect.