new OS based on nix :3
Go to file
TakeV 63cfc65294
Add dirlocal to enforce tabs (Sorry spaces users, you are wrong)
2023-03-30 14:12:40 -07:00
hosts added qemu host and set it as default in the config template 2023-03-29 17:16:49 +00:00
modules formatting 2023-03-29 06:31:13 +00:00
saturn fixed template 2023-03-29 23:08:54 +00:00
.dir-locals.el Add dirlocal to enforce tabs (Sorry spaces users, you are wrong) 2023-03-30 14:12:40 -07:00
.gitignore Ignore qcow2 2023-03-29 21:35:19 -07:00
LICENSE Initial commit 2023-03-15 02:12:00 -04:00
README.md Add link to nixos-generators 2023-03-29 20:58:37 -07:00
TODO.md updated todo 2023-03-29 06:31:51 +00:00
configuration.nix chagne instructions to symlink 2023-03-26 17:28:09 +00:00
default.nix fix variable name 2023-03-29 23:19:28 +00:00
home.nix added some tools / armcord 2023-03-26 02:09:53 +00:00
manifest.scm Add guix manifest to run nix (Sorry nix users) 2023-03-29 16:39:57 -07:00
replEval.nix added replEval for checking syntax errors 2023-03-27 20:52:02 +00:00
run-vm.sh Add script to quickly build/run the VM 2023-03-29 21:47:12 -07:00

README.md

saturnOS

this is the basis of the saturnOS operating system ( sorry guix enjoyers )

to check for syntax errors, run nix repl replEval.nix and once inside the repl, run imported to check for syntax errors

Setup for not nixos

Install nix on your system following the instructions here: https://nixos.org/download.html

Add the nixos 22.11 channel to your system, since we're basing on the latest stable branch for now. nix-channel --add https://nixos.org/channels/nixos-22.11 nixos

Enable flakes, as we're using a flake for our build process.

mkdir -p ~/.config/nix
echo "experimental-features = nix-command flakes" >> ~/.config/nix/nix.conf

Building and Running

We are using the nixos-generators package to help coordinate builds.

VM

To build the VM: nix run github:nix-community/nixos-generators -- -c default.nix -f vm -o result/vm This will build the VM, and register the result in the result/vm symlink.

To run the VM, use sudo result/vm/bin/run-qemu-vm. (sudo can probably be avoided if you are in the KVM group... I think. TODO Lambda look this up)

You can combine the two steps with the following: sudo $(nix run github:nix-community/nixos-generators -- -c default.nix -f vm -o result/vm)

Or to build and run without registering a link (Good if you want a throw away VM which can be garbage collected): sudo $(nix run github:nix-community/nixos-generators -- -c default.nix -f vm)