2 KiB
nix{os,-darwin,-on-droid} config
It just works™
Structure
Any directory or file that is prefixed with an _
(underscore) means that the
whole directory/file is unused in this repository.
.
│ # Darwin configuration is not actively maintained and sometimes it might
│ # break.
├── home # <-- See here for dotfiles!
├── darwin
├── nixos
│ ├── modules
│ └── profiles
│
│ # Personal packages, please see github:Guanran928/nur-packages instead
├── pkgs
├── hosts
├── overlays
│
├── flake.nix
├── flake.lock
│
└── README.md
Installation:
Please don't.
NixOS:
-
Clone this repository
$ git clone https://github.com/Guanran928/flake.git
-
Add your device's hardware configuration in
./flake.nix
and./hosts/<hostname>
-
Install NixOS
$ nixos-install --flake <this flake's directory>#<hostname>
macOS:
-
Install Nix using
Determinate Nix Installer
$ curl --proto '=https' --tlsv1.2 -fsSL https://install.determinate.systems/nix | sh -s -- install
-
Clone this repository
$ git clone https://github.com/Guanran928/flake.git
-
Add your device's hardware configuration in
./flake.nix
and./hosts/<hostname>
-
Install
nix-darwin
$ nix run nix-darwin -- --flake <this flake's directory>#<hostname> switch
Nix-On-Droid:
-
Install
nix-on-droid
and bootstrap with Flakes -
Clone this repository
$ nix shell nixpkgs#git
$ git clone https://github.com/Guanran928/flake.git
-
Add your device's configuration in
./flake.nix
and./hosts/<hostname>
-
Setup Nix-On-Droid
$ nix-on-droid --flake <this flake's directory>#<hostname>switch