My public NixOS configuration https://jalil.salame.cl/configuration.nix
Find a file
Jalil David Salamé Messina f30f93283e
[chore] flake.lock: Update inputs
• Updated input 'lix':
    '4f94531209.tar.gz?narHash=sha256-cxK0tBbUxXtIYKLbjHpH%2BswiIzEoj61c82I/pN/yBoE%3D' (2024-06-07)
  → '068576042b.tar.gz?narHash=sha256-/hsqsiw3p5qMpazedgFFZF2sQghbCJIoef7XCpegTXw%3D' (2024-06-13)
• Updated input 'nixos-hardware':
    'github:NixOS/nixos-hardware/d6c6cf6f5fead4057d8fb2d5f30aa8ac1727f177' (2024-06-05)
  → 'github:NixOS/nixos-hardware/ae5c8dcc4d0182d07d75df2dc97112de822cb9d6' (2024-06-14)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/0b8e7a1ae5a94da2e1ee3f3030a32020f6254105' (2024-06-05)
  → 'github:NixOS/nixpkgs/cc54fb41d13736e92229c21627ea4f22199fee6b' (2024-06-12)
• Updated input 'nixvim':
    'github:nix-community/nixvim/36f2e51b28ee3389a67ed5e9ed5c4bd388b06918' (2024-06-06)
  → 'github:nix-community/nixvim/7a2a25af02be25987aa43cd681312f4b5ba12317' (2024-06-14)
• Updated input 'nixvim/treefmt-nix':
    'github:numtide/treefmt-nix/3eb96ca1ae9edf792a8e0963cc92fddfa5a87706' (2024-06-01)
  → 'github:numtide/treefmt-nix/1cb529bffa880746a1d0ec4e0f5076876af931f1' (2024-06-11)
• Updated input 'unstable':
    'github:NixOS/nixpkgs/e8057b67ebf307f01bdcc8fba94d94f75039d1f6' (2024-06-05)
  → 'github:NixOS/nixpkgs/e9ee548d90ff586a6471b4ae80ae9cfcbceb3420' (2024-06-13)
2024-06-14 23:46:29 +02:00
.forgejo/workflows [ci] forgejo: build more outputs 2024-06-08 22:46:14 +02:00
.github/workflows [ci] add statix to the check job 2024-05-20 14:15:45 +02:00
docs [fix] *.nix: reformat with alejandra 2024-05-04 20:59:17 +02:00
home [fix] home: revamp options 2024-06-01 20:21:40 +02:00
machines [fix] *.nix: statix checks 2024-05-20 14:14:10 +02:00
nvim flake.lock: Update 2024-06-08 22:28:19 +02:00
system [feat] flake: prepare for 24.05 2024-06-01 20:21:28 +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 [feature] nix: switch to lix 2024-05-10 23:21:25 +02:00
.typos.toml feat(nvim): Add noice plugin (very nice) 2024-03-04 22:20:15 +01:00
flake.lock [chore] flake.lock: Update inputs 2024-06-14 23:46:29 +02:00
flake.nix [fix] flake.nix: minor input adjustments 2024-06-14 23:39:14 +02:00
fmt.nix [feat] ci: add forgejo actions 2024-06-08 22:41:09 +02:00
justfile [feature] justfile: add build-vm and run-vm commands 2024-05-05 14:35:52 +02:00
LICENSE feat: Add license 2024-01-14 18:04:01 +01:00
lint.nix [feat] ci: add forgejo actions 2024-06-08 22:41:09 +02:00
README.md [feature] justfile: add build-vm and run-vm commands 2024-05-05 14:35:52 +02:00
typos.nix [feat] ci: add forgejo actions 2024-06-08 22:41:09 +02: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 command to try this configuration in a vm:

$ just run-vm

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.