mirror of
https://github.com/srid/nixos-config.git
synced 2025-12-26 23:14:57 +08:00
KISS NixOS configuration based on Flakes & flake-parts (supports macOS too)
| .vscode | ||
| config | ||
| features | ||
| home | ||
| hosts | ||
| scripts | ||
| .envrc | ||
| .gitignore | ||
| flake.lock | ||
| flake.nix | ||
| Makefile | ||
| README.md | ||
| shell.nix | ||
This repository contains the Nix / NixOS configuration for all of my systems. Start from flakes.nix (see Flakes).
Platforms
NixOS
make nixos # Or, just `make`
macOS
make darwin # Or, just `make`
Install notes
- Hetzner dedicated from Linux Rescue system: https://github.com/serokell/nixos-install-scripts/pull/1#pullrequestreview-746593205
- Digital Ocean: https://github.com/elitak/nixos-infect
- X1 Carbon: https://www.srid.ca/x1c7-install
- macOS:
- Install Nix normally (multi-user)
- Install nix-darwin
- This will create a
~/.nixpkgs/darwin-configuration.nix, but we do not need that.
- This will create a
- Edit
flake.nixand add your Mac's hostname in thedarwinConfigurationsset. - Run
make.1 That's it. Re-open your shell.
-
You might have to
rm -rf /etc/nix/nix.conf, so our flake.nix can do its thing. ↩︎