My public NixOS configuration
53d5f2d9d8
Flake lock file updates: • Updated input 'home-manager': 'github:nix-community/home-manager/f99eace7c167b8a6a0871849493b1c613d0f1b80' (2024-02-05) → 'github:nix-community/home-manager/3d6791b3897b526c82920a2ab5f61d71985b3cf8' (2024-02-15) • Updated input 'nixos-hardware': '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) → 'https://api.flakehub.com/f/pinned/NixOS/nixos-hardware/0.1.1570%2Brev-f1b2f71c86a5b1941d20608db0b1e88a07d31303/018da354-4a5c-7384-b2a6-d88f9fd65c1e/source.tar.gz?narHash=sha256-M%2BHAq1qWQBi/gywaMZwX0odU%2BQb/XeqVeANGKRBDOwU%3D' (2024-02-13) • Updated input 'nixpkgs': '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) → 'https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.584422%2Brev-a4d4fe8c5002202493e87ec8dbc91335ff55552c/018dad59-c2e8-7e35-bb7c-808d295bb34a/source.tar.gz?narHash=sha256-ZL2TrjVsiFNKOYwYQozpbvQSwvtV/3Me7Zwhmdsfyu4%3D' (2024-02-15) • Updated input 'nvim-config': 'github:jalil-salame/nvim-config/506e6c81f9ef7fa6b251e4db5316a38307476c63' (2024-02-07) → 'github:jalil-salame/nvim-config/2a106ae6aaa425a3841aecb6f882b45bc2747102' (2024-02-15) • Updated input 'nvim-config/neovim-nightly': 'github:nix-community/neovim-nightly-overlay/1da2e054a16309d7d7f7669438c8b9a5ef1b4642' (2024-01-25) → 'github:nix-community/neovim-nightly-overlay/0b6b4afc71e14d7f17f4e4a367ce271b9d398432' (2024-02-15) • Updated input 'nvim-config/neovim-nightly/flake-parts': 'github:hercules-ci/flake-parts/07f6395285469419cf9d078f59b5b49993198c00' (2024-01-11) → 'github:hercules-ci/flake-parts/b253292d9c0a5ead9bc98c4e9a26c6312e27d69f' (2024-02-01) • Updated input 'nvim-config/neovim-nightly/neovim-flake': 'github:neovim/neovim/4e59422e1d4950a3042bad41a7b81c8db4f8b648?dir=contrib' (2024-01-24) → 'github:neovim/neovim/d09957e0a06f350443c750d9838b5f1016c0cccc?dir=contrib' (2024-02-14) • Updated input 'pre-commit-hooks': 'github:cachix/pre-commit-hooks.nix/0db2e67ee49910adfa13010e7f012149660af7f0' (2024-02-07) → 'github:cachix/pre-commit-hooks.nix/5df5a70ad7575f6601d91f0efec95dd9bc619431' (2024-02-15) |
||
---|---|---|
.github/workflows | ||
docs | ||
home | ||
machines | ||
nixos | ||
.editorconfig | ||
.envrc | ||
.gitignore | ||
flake.lock | ||
flake.nix | ||
LICENSE | ||
README.md |
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.