Update README.md

This commit is contained in:
Ivan Bushchik 2023-09-06 11:27:11 +03:00
parent 7879fc2feb
commit 6c7e4a2946
No known key found for this signature in database
GPG key ID: 2F16FBF3262E090C

View file

@ -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
``` ```