Literally means "dotfiles" in Dutch: "punt" = "dot", "bestanden" = "files"
What's in here:
- 9 NixOS configs (well, this is a generated number so it's technically correct but don't over-estimate me)
- a dendritic home-manager config (TODO: list aspects here)
- An unhinged Emacs config
- A lot less lines of neovim lua config compared to my previous attempt
- A clone of 9001's hub ISO, except not alpine-based 😅
A single command:
$ nix develop -c sudo disko-install -m format --flake .#<HOSTNAME> --disk main /dev/nvme0n1This repository uses the dendritic pattern for monolithic, interconnected NixOS/HomeManager/Nixvim configs. Hence it also uses flake.parts. This might throw you off if you are new to nix and/or nix flakes. You've been warned!
It is meant to make configurations more modular, flexible, and shareable though, so I encourage you to learn from it if you do so desire. If you understand flake.parts, all you need to know is that (almost) every nix file in this tree is a flake.parts module.
Learn more about it (in order of, well, "deepness" or complexity):
- https://flake.parts/
- https://flake.parts/options/flake-parts-modules.html
- https://github.com/mightyiam/dendritic
- https://github.com/vic/import-tree/
- https://github.com/vic/flake-file/
boomer, a reasonably sluggish Ryzen 5 2600 desktop PCfeather, the ultra-light Thinkpad X1 Carbon G8
This repository includes an "autounattend" installer ISO, which:
- Installs a nested, pre-defined NixOS configuration
- Without any user interaction required apart from booting it
- Also automatically partitions through disko
- Does not require internet
To create the iso, run nix build .#autounattend-iso.
To run an install demo in QEMU, run nix run .#install-demo.
If you do not have access to the secrets in this repo you'll need to
comment out the networking-wifi-passwords import in order to build it.
Beware: the eval time (and disk usage) is very inefficient, because it
seems like nix wants to copy around some source directory through the
store a couple of times. it is a cool party trick though.
NEW: you can do this in YOUR repo too, with your own target config!
Just run nix flake init -t github:dtomvan/templates#autounattend :)
- Have one of the private keys corresponding to a pubkey listed in
.sops.yamlin~/.config/sops/age/keys.txt. - Enter the devshell (or nix-shell -p sops nh)
nix flake lock --extra-access-tokens "$(sops decrypt secrets/localsend-rs.secret | awk '{print $3}')"nh os switch
Afterwards, through the nixos module, the secret will get loaded into
nix.conf and you can nix flake update for example without any manual setup