My public NixOS configuration
Find a file
github-actions[bot] a4bdbfe124 [chore] flake.lock: update inputs
Flake lock file updates:

```
• Updated input 'nixos-hardware':
    'github:NixOS/nixos-hardware/6e253f12b1009053eff5344be5e835f604bb64cd?narHash=sha256-xNbjISJTFailxass4LmdWeV4jNhAlmJPwj46a/GxE6M%3D' (2024-07-02)
  → 'github:NixOS/nixos-hardware/c5013aa7ce2c7ec90acee5d965d950c8348db751?narHash=sha256-G/OtEAts7ZUvW5lrGMXSb8HqRp2Jr9I7reBuvCOL54w%3D' (2024-07-11)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/c0d0be00d4ecc4b51d2d6948e37466194c1e6c51?narHash=sha256-E5dN9GDV4LwMEduhBLSkyEz51zM17XkWZ3/9luvNOPs%3D' (2024-07-04)
  → 'github:NixOS/nixpkgs/249fbde2a178a2ea2638b65b9ecebd531b338cf9?narHash=sha256-IXMiHQMtdShDXcBW95ctA%2Bm5Oq2kLxnBt7WlMxvDQXA%3D' (2024-07-09)
• Updated input 'nixvim':
    'github:nix-community/nixvim/6674dea8403747827431d4d8497c34023f93d047?narHash=sha256-CNtfHBwlKuTTanwmUI85Z/HkHShnqZs%2BWYyxQR8zRFY%3D' (2024-07-06)
  → 'github:nix-community/nixvim/53e85da2409ddfeef27e8cdc9c020433614329f9?narHash=sha256-TX7PZY80h22%2Bi01d2M1/50gfdzbvqYpmE7%2Bs13FJnJ4%3D' (2024-07-11)
• Updated input 'nixvim/git-hooks/flake-compat':
    'github:edolstra/flake-compat/0f9255e01c2351cc7d116c072cb317785dd33b33?narHash=sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U%3D' (2023-10-04)
  → follows 'nixvim/flake-compat'
• Updated input 'unstable':
    'github:NixOS/nixpkgs/9f4128e00b0ae8ec65918efeba59db998750ead6?narHash=sha256-rwz8NJZV%2B387rnWpTYcXaRNvzUSnnF9aHONoJIYmiUQ%3D' (2024-07-03)
  → 'github:NixOS/nixpkgs/feb2849fdeb70028c70d73b848214b00d324a497?narHash=sha256-ZgnNHuKV6h2%2BfQ5LuqnUaqZey1Lqqt5dTUAiAnqH0QQ%3D' (2024-07-09)
```
2024-07-12 10:07:12 +02:00
.forgejo/workflows [feat] nvim: configure nvim-silicon 2024-06-16 22:21:12 +02:00
.github/workflows [fix] ci: update actions 2024-07-05 08:16:45 +02:00
docs [fix] fmt: change formatter to nixfmt-rfc-style 2024-07-04 22:33:55 +02:00
home [fix] fmt: change formatter to nixfmt-rfc-style 2024-07-04 22:33:55 +02:00
machines [fix] fmt: change formatter to nixfmt-rfc-style 2024-07-04 22:33:55 +02:00
nvim [fix] nvim: switch nix formatter to nixfmt-rfc-style 2024-07-04 22:33:55 +02:00
system [fix] fmt: change formatter to nixfmt-rfc-style 2024-07-04 22:33:55 +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-07-12 10:07:12 +02:00
flake.nix [chore] flake.nix: update lix to the full release 2024-07-11 16:50:13 +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
README.md [feature] justfile: add build-vm and run-vm commands 2024-05-05 14:35:52 +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.