Add README, make flake readable

This commit is contained in:
Julius 2022-05-19 15:12:01 +02:00
parent fc530f450f
commit 834b5350bf
Signed by: j00lz
GPG key ID: AF241B0AA237BBA2
2 changed files with 13 additions and 1 deletions

9
README.md Normal file
View 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.

View file

@ -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 = {