My public NixOS configuration https://jalil.salame.cl/configuration.nix
Find a file
2024-05-04 20:59:17 +02:00
.github/workflows feat(ci): Enable cache in pull requests 2024-03-17 00:35:40 +01:00
docs [fix] *.nix: reformat with alejandra 2024-05-04 20:59:17 +02:00
home [fix] *.nix: reformat with alejandra 2024-05-04 20:59:17 +02:00
machines [fix] *.nix: reformat with alejandra 2024-05-04 20:59:17 +02:00
nvim [fix] *.nix: reformat with alejandra 2024-05-04 20:59:17 +02:00
system [fix] *.nix: reformat with alejandra 2024-05-04 20:59:17 +02:00
.editorconfig feat: Add editorconfig file 2024-01-21 20:56:10 +01:00
.envrc feat: Add a bunch of precommit hooks 2024-01-15 23:59:15 +01:00
.gitignore feat: Add a bunch of precommit hooks 2024-01-15 23:59:15 +01:00
.typos.toml feat(nvim): Add noice plugin (very nice) 2024-03-04 22:20:15 +01:00
flake.lock [refactor] flake.nix: trim flake inputs 2024-05-04 20:53:43 +02:00
flake.nix [fix] *.nix: reformat with alejandra 2024-05-04 20:59:17 +02:00
justfile fix(justfile): Small mistakes 2024-03-29 13:13:16 +01:00
LICENSE feat: Add license 2024-01-14 18:04:01 +01:00
README.md feat(devShell): Add QEMU_OPTS_WL env var 2024-03-26 20:59:36 +01:00

My NixOS Configuration as a NixOS module

This is only intended for my use, but you can see how I overengineer stuff by looking at it :p (maybe you can also learn some stuff on the way).

Note

This README only has a small amount of information, if you want to see the full documentation then go to https://jalil-salame.github.io/configuration.nix. I also overenginerd this c: (if you want to copy the docs for your own project, then take a look at the docs folder and the workflow(build-documentation and deploy)).

Try out in a VM

If you already have nix you can run the following commands:

$ nix run nixpkgs#nixos-rebuild -- build-vm --flake .#vm
building the system configuration...

Done.  The virtual machine can be started by running /nix/store/$hash-nixos-vm/bin/run-nixos-vm
$ /nix/store/$hash-nixos-vm/bin/run-nixos-vm $QEMU_OPTS_WL

The default user is jdoe and the default password is example.

Note

$QEMU_OPTS_WL is a set of options that will enable Wayland passthrough (and GPU acceleration) and give the VM 2vCPU cores and 2GiB of RAM. This will significantly improve your experience when running the VM so it is recommended, but if Wayland is not available or you don't have enough memory/CPU cores, then you can use -virtio vga and/or reduce the allocated resources.