My public NixOS configuration
Find a file
github-actions[bot] ea8ca1d28f
flake.lock: Update
Flake lock file updates:

• Updated input 'home-manager':
    'github:nix-community/home-manager/0e0e9669547e45ea6cca2de4044c1a384fd0fe55' (2024-02-22)
  → 'github:nix-community/home-manager/2f3367769a93b226c467551315e9e270c3f78b15' (2024-02-29)
• Updated input 'neovim-nightly':
    'github:nix-community/neovim-nightly-overlay/c0e693f96608883cb9f2fca171c84ef2f04e52ad' (2024-02-23)
  → 'github:nix-community/neovim-nightly-overlay/cc9a9e3382376958422b12170c7edd78087c7a98' (2024-03-01)
• Updated input 'neovim-nightly/neovim-flake':
    'github:neovim/neovim/df1795cd6bdf7e1db31c87d4a33d89a2c8269560?dir=contrib' (2024-02-22)
  → 'github:neovim/neovim/5d4e1693cb415e8b76749e833e28f00f14630b87?dir=contrib' (2024-02-29)
• Updated input 'nixneovim':
    'github:NixNeovim/NixNeovim/7c794c5670e1b3ed41cefa2d598b172c3ff388c8' (2024-01-29)
  → 'github:NixNeovim/NixNeovim/eebce182253d8c665a8a19e0b056f6cfaf97872c' (2024-02-29)
• Updated input 'nixneovim/flake-utils':
    'github:numtide/flake-utils/1ef2e671c3b0c19053962c07dbda38332dcebf26' (2024-01-15)
  → 'github:numtide/flake-utils/d465f4819400de7c8d874d50b982301f28a84605' (2024-02-28)
• Updated input 'nixneovim/nixneovimplugins':
    'github:nixneovim/nixneovimplugins/4ee66f98595b46adcf656e27293eb5546be9ab6f' (2024-01-25)
  → 'github:nixneovim/nixneovimplugins/03cd562d0e4700216dcf8c3e14a4eebf0b2e5681' (2024-02-29)
• Updated input 'nixos-hardware':
    'github:NixOS/nixos-hardware/3f7d0bca003eac1a1a7f4659bbab9c8f8c2a0958' (2024-02-22)
  → 'github:NixOS/nixos-hardware/33a97b5814d36ddd65ad678ad07ce43b1a67f159' (2024-02-28)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/0e74ca98a74bc7270d28838369593635a5db3260' (2024-02-21)
  → 'github:NixOS/nixpkgs/9099616b93301d5cf84274b184a3a5ec69e94e08' (2024-02-28)
2024-03-01 08:17:30 +01:00
.github/workflows fixup! fix(ci): Deploy condition 2024-02-18 17:04:46 +01:00
docs feat(docs): Generate github source urls 2024-02-18 16:06:32 +01:00
home fix(home): Rustup and rust-analyzer conflict 2024-02-24 16:32:00 +01:00
machines fix(libra): Reenable dcdebugmask 2024-02-20 18:01:50 +01:00
nvim fix(home): Rustup and rust-analyzer conflict 2024-02-24 16:32:00 +01:00
system feat(docs): Add image preview to image options 2024-02-18 16:46:15 +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-03-01 08:17:30 +01:00
flake.nix fix: Rename ./nixos to ./system 2024-02-18 15:43:37 +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.