My public NixOS configuration
b7c498a4fe
Flake lock file updates: • Updated input 'home-manager': 'github:nix-community/home-manager/3d6791b3897b526c82920a2ab5f61d71985b3cf8' (2024-02-15) → 'github:nix-community/home-manager/0e0e9669547e45ea6cca2de4044c1a384fd0fe55' (2024-02-22) • Updated input 'neovim-nightly': 'github:nix-community/neovim-nightly-overlay/1afaeebc41dab1029b855b17d78f2348e8dd49e3' (2024-02-16) → 'github:nix-community/neovim-nightly-overlay/c0e693f96608883cb9f2fca171c84ef2f04e52ad' (2024-02-23) • Updated input 'neovim-nightly/hercules-ci-effects': 'github:hercules-ci/hercules-ci-effects/d5cbf433a6ae9cae05400189a8dbc6412a03ba16' (2023-12-31) → 'github:hercules-ci/hercules-ci-effects/0ca27bd58e4d5be3135a4bef66b582e57abe8f4a' (2024-02-21) • Updated input 'neovim-nightly/neovim-flake': 'github:neovim/neovim/04dfa2eea914086a9f42a5a00a33e9524f9fded4?dir=contrib' (2024-02-15) → 'github:neovim/neovim/df1795cd6bdf7e1db31c87d4a33d89a2c8269560?dir=contrib' (2024-02-22) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/106d3fec43bcea19cb2e061ca02531d54b542ce3' (2024-02-16) → 'github:NixOS/nixos-hardware/3f7d0bca003eac1a1a7f4659bbab9c8f8c2a0958' (2024-02-22) • Updated input 'nixpkgs': 'github:NixOS/nixpkgs/a4d4fe8c5002202493e87ec8dbc91335ff55552c' (2024-02-15) → 'github:NixOS/nixpkgs/0e74ca98a74bc7270d28838369593635a5db3260' (2024-02-21) |
||
---|---|---|
.github/workflows | ||
docs | ||
home | ||
machines | ||
nvim | ||
system | ||
.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.