From 2052c93e43e6bdc67b380ea666912de16e3f75df Mon Sep 17 00:00:00 2001 From: pingu Date: Sun, 13 Jul 2025 00:09:27 +0200 Subject: [PATCH] Book layout --- .envrc | 1 + .gitignore | 7 +++++ book.toml | 5 +++ flake.lock | 61 ++++++++++++++++++++++++++++++++++++ flake.nix | 21 +++++++++++++ src/SUMMARY.md | 15 +++++++++ src/about.md | 1 + src/configuration/GUI.md | 1 + src/configuration/drivers.md | 1 + src/configuration/hm.md | 1 + src/configuration/index.md | 1 + src/configuration/users.md | 1 + src/contributing.md | 1 + src/installation/index.md | 1 + src/introduction.md | 1 + 15 files changed, 119 insertions(+) create mode 100644 .envrc create mode 100644 .gitignore create mode 100644 book.toml create mode 100644 flake.lock create mode 100644 flake.nix create mode 100644 src/SUMMARY.md create mode 100644 src/about.md create mode 100644 src/configuration/GUI.md create mode 100644 src/configuration/drivers.md create mode 100644 src/configuration/hm.md create mode 100644 src/configuration/index.md create mode 100644 src/configuration/users.md create mode 100644 src/contributing.md create mode 100644 src/installation/index.md create mode 100644 src/introduction.md diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..3550a30 --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use flake diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..565ff7d --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +book +.DS_Store +.idea +*.log +tmp/ + +.direnv/ diff --git a/book.toml b/book.toml new file mode 100644 index 0000000..4c4bc81 --- /dev/null +++ b/book.toml @@ -0,0 +1,5 @@ +[book] +authors = ["pingu"] +language = "en" +src = "src" +title = "NixOS Installation Guide" diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..1f73ad9 --- /dev/null +++ b/flake.lock @@ -0,0 +1,61 @@ +{ + "nodes": { + "flake-utils": { + "inputs": { + "systems": "systems" + }, + "locked": { + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1751984180, + "narHash": "sha256-LwWRsENAZJKUdD3SpLluwDmdXY9F45ZEgCb0X+xgOL0=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "9807714d6944a957c2e036f84b0ff8caf9930bc0", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": "nixpkgs" + } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..361606e --- /dev/null +++ b/flake.nix @@ -0,0 +1,21 @@ +{ + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + flake-utils.url = "github:numtide/flake-utils"; + }; + outputs = { self, nixpkgs, flake-utils }: + flake-utils.lib.eachDefaultSystem + (system: + let + pkgs = import nixpkgs { + inherit system; + }; + in + with pkgs; + { + devShells.default = mkShell { + buildInputs = [ mdbook ]; + }; + } + ); +} diff --git a/src/SUMMARY.md b/src/SUMMARY.md new file mode 100644 index 0000000..de48580 --- /dev/null +++ b/src/SUMMARY.md @@ -0,0 +1,15 @@ +# Summary + +[Introduction](./introduction.md) + +- [Installation](./installation/index.md) +- [Configuration](./configuration/index.md) + - [Users](./configuration/users.md) + - [Drivers](./configuration/drivers.md) + - [GUI](./configuration/GUI.md) + - [Home-manager](./configuration/hm.md) + +--- + +[About](./about.md) +[Contributing](./contributing.md) diff --git a/src/about.md b/src/about.md new file mode 100644 index 0000000..4b51d64 --- /dev/null +++ b/src/about.md @@ -0,0 +1 @@ +# About diff --git a/src/configuration/GUI.md b/src/configuration/GUI.md new file mode 100644 index 0000000..94b9074 --- /dev/null +++ b/src/configuration/GUI.md @@ -0,0 +1 @@ +# GUI diff --git a/src/configuration/drivers.md b/src/configuration/drivers.md new file mode 100644 index 0000000..0b091b7 --- /dev/null +++ b/src/configuration/drivers.md @@ -0,0 +1 @@ +# Drivers diff --git a/src/configuration/hm.md b/src/configuration/hm.md new file mode 100644 index 0000000..6686aec --- /dev/null +++ b/src/configuration/hm.md @@ -0,0 +1 @@ +# Home-manager diff --git a/src/configuration/index.md b/src/configuration/index.md new file mode 100644 index 0000000..a025a48 --- /dev/null +++ b/src/configuration/index.md @@ -0,0 +1 @@ +# Configuration diff --git a/src/configuration/users.md b/src/configuration/users.md new file mode 100644 index 0000000..76e7c23 --- /dev/null +++ b/src/configuration/users.md @@ -0,0 +1 @@ +# Users diff --git a/src/contributing.md b/src/contributing.md new file mode 100644 index 0000000..854139a --- /dev/null +++ b/src/contributing.md @@ -0,0 +1 @@ +# Contributing diff --git a/src/installation/index.md b/src/installation/index.md new file mode 100644 index 0000000..25267fe --- /dev/null +++ b/src/installation/index.md @@ -0,0 +1 @@ +# Installation diff --git a/src/introduction.md b/src/introduction.md new file mode 100644 index 0000000..e10b99d --- /dev/null +++ b/src/introduction.md @@ -0,0 +1 @@ +# Introduction