Add README, make flake readable
This commit is contained in:
parent
fc530f450f
commit
834b5350bf
9
README.md
Normal file
9
README.md
Normal file
|
@ -0,0 +1,9 @@
|
|||
# strato-infra
|
||||
This is my nix infrastructure that runs on my strato server.
|
||||
|
||||
## nixos image
|
||||
To get a basic nixos image use `nix build .#register`.
|
||||
|
||||
Afterwards you can import it into lxd using `lxc image import ./result/metadata.tar.xz ./result/lxc.tar.xz --alias nixos`
|
||||
|
||||
You can then use `lxc launch nixos $name$` to make a new lxc container and start it.
|
|
@ -39,7 +39,10 @@
|
|||
src = self;
|
||||
buildPhase =
|
||||
"mkdir -p $out; ln -s ${lxc} $out/lxc; ln -s ${metadata} $out/metadata";
|
||||
installPhase = "ln -s $out/lxc/tarball/nixos-system-x86_64-linux.tar.xz $out/lxc.tar.xz; ln -s $out/metadata/tarball/nixos-system-x86_64-linux.tar.xz $out/metadata.tar.xz";
|
||||
installPhase = ''
|
||||
ln -s $out/lxc/tarball/nixos-system-x86_64-linux.tar.xz $out/lxc.tar.xz;
|
||||
ln -s $out/metadata/tarball/nixos-system-x86_64-linux.tar.xz $out/metadata.tar.xz;
|
||||
'';
|
||||
};
|
||||
|
||||
colmena = {
|
||||
|
|
Loading…
Reference in a new issue