My public NixOS configuration https://jalil.salame.cl/configuration.nix
Find a file
github-actions[bot] 4a4cd36ae9
flake.lock: Update
Flake lock file updates:

• Updated input 'home-manager':
    'github:nix-community/home-manager/4d53427bce7bf3d17e699252fd84dc7468afc46e' (2024-02-01)
  → 'github:nix-community/home-manager/f99eace7c167b8a6a0871849493b1c613d0f1b80' (2024-02-05)
• Updated input 'nixos-hardware':
    'https://api.flakehub.com/f/pinned/NixOS/nixos-hardware/0.1.1558%2Brev-83e571bb291161682b9c3ccd48318f115143a550/018d674b-740c-710e-9fe6-832f56de0985/source.tar.gz?narHash=sha256-3CfxA7gZ%2BDVv/N9Pvw61bV5Oe/mWfxYPyVQGqp9TMJA%3D' (2024-02-02)
  → 'https://api.flakehub.com/f/pinned/NixOS/nixos-hardware/0.1.1563%2Brev-6e5cc385fc8cf5ca6495d70243074ccdea9f64c7/018d7dbd-8f5c-772c-9072-324572b824f3/source.tar.gz?narHash=sha256-LTKTzZ6fM5j8XWXf51IMBzDaOaJg9kYWLUZxoIhzRN8%3D' (2024-02-06)
• Updated input 'nixpkgs':
    'https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.577948%2Brev-97b17f32362e475016f942bbdfda4a4a72a8a652/018d5e85-4e02-7200-b411-d764d60cd44e/source.tar.gz?narHash=sha256-UcsnCG6wx%2B%2B23yeER4Hg18CXWbgNpqNXcHIo5/1Y%2Bhc%3D' (2024-01-29)
  → 'https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.581229%2Brev-f8e2ebd66d097614d51a56a755450d4ae1632df1/018d8a37-bd05-79cb-a42f-290c1f0ca0ce/source.tar.gz?narHash=sha256-2en1kvde3cJVc3ZnTy8QeD2oKcseLFjYPLKhIGDanQ0%3D' (2024-02-07)
• Updated input 'nvim-config':
    'github:jalil-salame/nvim-config/1edc2c0796fb0528e9ad43927c2dec80660af854' (2024-02-05)
  → 'github:jalil-salame/nvim-config/506e6c81f9ef7fa6b251e4db5316a38307476c63' (2024-02-07)
• Updated input 'pre-commit-hooks':
    'github:cachix/pre-commit-hooks.nix/7c54e08a689b53c8a1e5d70169f2ec9e2a68ffaf' (2024-01-28)
  → 'github:cachix/pre-commit-hooks.nix/0db2e67ee49910adfa13010e7f012149660af7f0' (2024-02-07)
• Updated input 'stylix':
    'github:jalil-salame/stylix/a492a0ae8c752be6ba25fda1dcd13e6270b900d2' (2024-02-02)
  → 'github:jalil-salame/stylix/8059347a40023ba7ce2a2b79ed5d17c205a9fb88' (2024-02-08)
• Added input 'stylix/gnome-shell':
    'github:GNOME/gnome-shell/a7c169c6c29cf02a4c392fa0acbbc5f5072823e7' (2023-10-31)
2024-02-09 12:24:34 +01:00
.github/workflows fix(ci): Disable nix cache on pull requests 2024-02-02 15:14:13 +01:00
docs feat(docs): Preprocess with mdbook-toc 2024-02-01 22:10:40 +01:00
home feat(git): Extra options 2024-02-08 20:18:34 +01:00
machines fix(gemini): Remove EoP workaround 2024-01-29 19:08:09 +01:00
nixos fix(xdg-portals): Issue opening urls 2024-02-05 20:41:09 +01: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
flake.lock flake.lock: Update 2024-02-09 12:24:34 +01:00
flake.nix fix(flake): Formatting 2024-02-05 23:30:23 +01:00
LICENSE feat: Add license 2024-01-14 18:04:01 +01:00
README.md feat(README): Add instructions to build a test vm 2024-02-02 13:58:22 +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).

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 -vga virtio

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

Note

The -vga virtio flag is important, sway won't run if it is missing.