nix-server/readme.md
2024-03-11 17:18:54 -07:00

29 lines
1.2 KiB
Markdown
Executable file

# flake-o-rama
nix flake config! this is just used on my personal server at the moment
please do not use this as a learning resource for nix as i have essentially zero clue what i'm doing
## users
this flake is built for a multi-user experience per host, enforced by [`modules/users.nix`](./modules/users.nix), and found in the `default.nix` file for each host.
as this is a multi-user setup, the `dotfiles` group will be used for read and write access to the flake
## development
to build the system, run `sudo nixos-rebuild switch --flake .#server`
please periodically run `nix flake update` to make sure we arent slacking on package versions
before committing, please run `nix flake check` and make sure everything is ok
## todo
- remove the lua static stuff from nginx + maybe cloudflare ips too + redis
- per-host architecture selection, atm it is hardcoded to `aarch64`
- some weird perl error abt locales when building using doas - `keepEnv` might fix this
- move common config such as bootloader and networking settings to [`default.nix`](./default.nix)
- swap back to hardened kernel
- leverage nixos-hardware
- somehow add desktop evironments and per-user dotfiles while keeping a multi-user setup - we can always give this up if needed