mirror of
https://github.com/ivabus/nixos
synced 2024-11-22 00:15:06 +03:00
Update README.md
This commit is contained in:
parent
7879fc2feb
commit
6c7e4a2946
1 changed files with 4 additions and 4 deletions
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
Setup disks, mount root to `/mnt` and `/boot` to `/mnt/boot` and run something like this
|
Setup disks, mount root to `/mnt` and `/boot` to `/mnt/boot` and run something like this
|
||||||
|
|
||||||
```shell
|
```
|
||||||
git clone https://github.com/ivabus/nixos /mnt/etc/nixos
|
git clone https://github.com/ivabus/nixos /mnt/etc/nixos
|
||||||
nixos-generate-config --show-hardware-config --root /mnt > /mnt/etc/nixos/machines/host/hardware.nix
|
nixos-generate-config --show-hardware-config --root /mnt > /mnt/etc/nixos/machines/host/hardware.nix
|
||||||
nixos-install --flake path:.#host
|
nixos-install --flake path:.#host
|
||||||
|
@ -14,7 +14,7 @@ nixos-install --flake path:.#host
|
||||||
|
|
||||||
Replace `{{REPO_PATH}}` with path to this repo (surprising, isn't it) and run on NixOS system (or system with Nix (don't tested))
|
Replace `{{REPO_PATH}}` with path to this repo (surprising, isn't it) and run on NixOS system (or system with Nix (don't tested))
|
||||||
|
|
||||||
```bash
|
```
|
||||||
nix build path:{{REPO_PATH}}#nixosConfigurations.HOST.config.system.build.sdImage
|
nix build path:{{REPO_PATH}}#nixosConfigurations.HOST.config.system.build.sdImage
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ Module example:
|
||||||
{ config, lib, ... }:
|
{ config, lib, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.my.MODULE;
|
cfg = config.my.MODULE;
|
||||||
in {
|
in {
|
||||||
options.my.MODULE.enable = lib.mkEnableOption "Enable MODULE";
|
options.my.MODULE.enable = lib.mkEnableOption "Enable MODULE";
|
||||||
config = lib.mkIf (cfg.enable) {
|
config = lib.mkIf (cfg.enable) {
|
||||||
|
@ -57,7 +57,7 @@ I "made" some shell in [shells/](./shells).
|
||||||
|
|
||||||
I install my dotfiles with prepared script
|
I install my dotfiles with prepared script
|
||||||
|
|
||||||
```shell
|
```
|
||||||
curl https://iva.bz/nix | sh
|
curl https://iva.bz/nix | sh
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue