2023-02-26 02:46:35 +01:00
|
|
|
# Initial setup (old)
|
2022-10-17 22:40:48 +02:00
|
|
|
|
2023-02-26 02:46:35 +01:00
|
|
|
nixos-generate-config
|
2022-10-17 22:40:48 +02:00
|
|
|
|
2023-02-26 02:46:35 +01:00
|
|
|
# Reading list
|
2022-10-17 22:40:48 +02:00
|
|
|
|
2023-02-26 02:46:35 +01:00
|
|
|
* https://nixos.wiki/wiki/Flakes
|
|
|
|
* https://teu5us.github.io/nix-lib.html
|
|
|
|
* https://ryantm.github.io/nixpkgs/builders/trivial-builders/
|
2023-02-26 06:11:55 +01:00
|
|
|
* https://nixos.wiki/wiki/Nix-writers
|
2023-02-25 00:03:29 +01:00
|
|
|
|
2023-02-26 02:46:35 +01:00
|
|
|
# TODOs:
|
2023-02-25 00:03:29 +01:00
|
|
|
|
2023-02-26 02:46:35 +01:00
|
|
|
* [x] Split stuff into multiple files
|
|
|
|
* [x] Make a flake
|
2023-02-26 03:53:55 +01:00
|
|
|
* [x] merge hosted docs into a single subdomain
|
|
|
|
* [ ] pre-commit hook with 'nix eval'
|
2023-02-26 02:46:35 +01:00
|
|
|
* [ ] Setup some remote-development flow
|
|
|
|
* [ ] users/pbsds: Support multiple profiles, like headless, nixpkgs-dev, various desktops, hpc, pvv, etc
|
|
|
|
* [ ] nixos-generate-config instructions
|
|
|
|
* [ ] zfs
|
|
|
|
* [ ] secrets
|
|
|
|
* [ ] profiles/web: make ACME/nginx helper a function
|
|
|
|
* [ ] Support multiple tlds
|
|
|
|
* [ ] Support multiple acme accounts
|
|
|
|
* [ ] Support a per-account provider?
|
|
|
|
* [ ] Support DNS auth
|
|
|
|
* [ ] Setup aliases instead of a per-subdomain cert
|
2023-02-25 00:03:29 +01:00
|
|
|
|
2023-02-26 02:46:35 +01:00
|
|
|
|
|
|
|
# Cheatsheet
|
|
|
|
|
|
|
|
### How to evaluate nixos flake/configuration.nix, checking if the drv hash is equal
|
|
|
|
|
|
|
|
nix eval .#nixosConfigurations.noximilien.config.system.build.toplevel.outPath
|
|
|
|
# or
|
2023-02-25 00:03:29 +01:00
|
|
|
nix-instantiate '<nixpkgs/nixos>' -A system -I nixos-config=./configuration.nix
|