docs(nix): Update documentation
This commit is contained in:
parent
97edccc21b
commit
9a52ffd7c6
2 changed files with 22 additions and 18 deletions
|
@ -1,36 +1,40 @@
|
||||||
# `null2264`'s Nix Setup
|
# `null2264`'s Nix Setup
|
||||||
|
|
||||||
You need to install Nix before following this guide: `sh <(curl -L https://nixos.org/nix/install)` and symlink this dir to `~/.config/nix`
|
|
||||||
|
|
||||||
## Structure
|
## Structure
|
||||||
|
|
||||||
```
|
```
|
||||||
├── flake.lock
|
├── flake.lock
|
||||||
├── flake.nix
|
├── flake.nix
|
||||||
├── lib # Self-explanatory, it contains helper functions
|
├── lib/ # Self-explanatory, it contains helper functions
|
||||||
│ ├── mkCommon.nix
|
│ ├── mkCommon.nix
|
||||||
│ └── mkSystem.nix
|
│ └── mkSystem.nix
|
||||||
├── modules # Contains shared configuration across system, across user
|
├── modules/ # Contains shared configuration across system, across user
|
||||||
│ └── home-manager
|
│ └── home-manager
|
||||||
│ └── floorp.nix
|
│ └── floorp.nix
|
||||||
├── systems # Contains configurations depending on what type OS nix is being used in
|
├── overlays/ # Nix overlays, self-explanatory
|
||||||
│ ├── darwin # macOS
|
├── systems/ # Contains configurations depending on what type OS nix is being used in
|
||||||
│ │ ├── configuration.nix
|
│ ├── darwin/ # - macOS
|
||||||
│ │ └── default.nix
|
│ │ ├── configuration.nix # -- There supposed supposed to be a split here just like `nix/`, but I got lazy
|
||||||
│ └── nix # Linux-alike
|
│ │ ├── default.nix # -- Where you register your Mac (based on hostname)
|
||||||
│ ├── default.nix
|
│ ├── nix/ # - non-NixOS (Linux/BSD/etc..)
|
||||||
│ └── potato
|
│ │ ├── default.nix # -- Where you register your PC (based on hostname)
|
||||||
│ └── default.nix
|
│ │ └── <hostname>/
|
||||||
└── users # Contains configurations for multi-user setup
|
│ │ └── default.nix
|
||||||
├── default.nix
|
│ └── nixos/ # - NixOS
|
||||||
└── ziro
|
└── users/ # Contains configurations for multi-user setup
|
||||||
├── darwin.nix
|
├── default.nix # - Where you register the user(s)
|
||||||
├── default.nix
|
└── <user>/ # - Recommended to split it to several nix files depending on the OS type you're planning to use
|
||||||
└── linux.nix
|
├── darwin.nix # -- macOS
|
||||||
|
├── default.nix # -- Common (works on all OS type)
|
||||||
|
└── linux.nix # -- Linux
|
||||||
```
|
```
|
||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
|
|
||||||
|
### Nix
|
||||||
|
|
||||||
|
It is recommended to install nix using [Determinate Nix Installer](https://github.com/DeterminateSystems/nix-installer) or [Nix's Official Installer](https://nixos.org/download/) (with `--daemon` flag, aka Multi-user installation) instead of whatever provided by your OS' package manager to avoid potential incompatibility.
|
||||||
|
|
||||||
### macOS
|
### macOS
|
||||||
|
|
||||||
> [!NOTE]
|
> [!NOTE]
|
||||||
|
|
0
nix/systems/nixos/.keep
Normal file
0
nix/systems/nixos/.keep
Normal file
Loading…
Add table
Add a link
Reference in a new issue