Skip to content

Commit b42b30d

Browse files
committed
docs: remove extra spaces
1 parent 25102fb commit b42b30d

File tree

14 files changed

+24
-24
lines changed

14 files changed

+24
-24
lines changed

docs/.vitepress/theme/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
* Each colors have exact same color scale system with 3 levels of solid
1010
* colors with different brightness, and 1 soft color.
11-
*
11+
*
1212
* - `XXX-1`: The most solid color used mainly for colored text. It must
1313
* satisfy the contrast ratio against when used on top of `XXX-soft`.
1414
*

docs/src/getting_started/first_modules.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# First Modules {#first-modules}
2-
In this section, we will create modules for some programs. To start, create the `programs` and `services` subdirectories in the `modules` directory.
2+
In this section, we will create modules for some programs. To start, create the `programs` and `services` subdirectories in the `modules` directory.
33

44
Creating your own modules is almost the same as creating regular NixOS modules, so you can look for NixOS options [here](https://search.nixos.org/options?).
55

docs/src/getting_started/initialization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ First, create a directory for your configuration and a `flake.nix` file with the
2727
inputs.home-manager.follows = "home-manager";
2828
};
2929
};
30-
30+
3131
outputs = {
3232
denix,
3333
nixpkgs,

docs/src/getting_started/transfer_to_denix.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Transfer to Denix {#transfer-to-denix}
2-
If you already have a NixOS or Home Manager configuration, you can transfer most of the code without significant changes and then adapt it for Denix.
2+
If you already have a NixOS or Home Manager configuration, you can transfer most of the code without significant changes and then adapt it for Denix.
33

44
However, you will need to create the following from scratch:
55
- Hosts
@@ -9,7 +9,7 @@ However, you will need to create the following from scratch:
99
The main part of the configuration can be fully reused from your old setup. The key is to separate the hardware configuration from the general configuration. See the section [How Does It Work?](#how-it-works).
1010

1111
## How Does It Work? {#how-it-works}
12-
All Denix modules are standard Home Manager or NixOS modules but with additional logic for enabling and disabling configurations.
12+
All Denix modules are standard Home Manager or NixOS modules but with additional logic for enabling and disabling configurations.
1313

1414
This means that you can add code or files from the old configuration into the new one, so they are imported through [`delib.configurations`](/configurations/introduction). You can place this code in the `modules` directory or create a new one, for example, `modules_nixos_old` for older configurations.
1515

docs/src/hosts/structure.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,25 +28,25 @@ delib.host {
2828
# then {config.${myConfigName} = ...;}
2929
# else {}
3030
myconfig = {name, cfg, myconfig, ...}: {};
31-
31+
3232
# if config.${myconfigName}.host == name
3333
# then {config = ...;}
3434
# else {}
3535
nixos = {name, cfg, myconfig, ...}: {};
36-
36+
3737
# if config.${myconfigName}.host == name, then
3838
# if isHomeManager
3939
# then {config = ...;}
4040
# else {config.home-manager.users.${homeManagerUser} = ...;}
4141
# else {}
4242
home = {name, cfg, myconfig, ...}: {};
43-
43+
4444
# config.${myConfigName} = ...
4545
shared.myconfig = {name, cfg, myconfig, ...}: {};
46-
46+
4747
# config = ...
4848
shared.nixos = {name, cfg, myconfig, ...}: {};
49-
49+
5050
# if isHomeManager
5151
# then {}
5252
# else {config = ...;}

docs/src/modules/examples.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Examples
22

3-
## Constants {#constants}
3+
## Constants {#constants}
44
```nix
55
{delib, ...}:
66
delib.module {

docs/src/modules/structure.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ This section uses the variables `myconfigName`, `isHomeManager`, and `homeManage
1414

1515
## Passed Arguments {#passed-arguments}
1616
A list of arguments passed to `options` and `[myconfig|nixos|home].[ifEnabled|ifDisabled|always]`, if their type is a `lambda`:
17-
- `name`: the same [name](#function-arguments-name) from the `delib.module` arguments.
17+
- `name`: the same [name](#function-arguments-name) from the `delib.module` arguments.
1818
- `myconfig`: equals `config.${myConfigName}`.
1919
- `cfg`{#passed-arguments-cfg}: equals the result of the expression `delib.getAttrByStrPath name config.${myConfigName} {}`, where `name` is the [argument](#function-arguments-name) from `delib.module`, and `{}` is the value returned if the attribute is not found.
2020

2121
## Pseudocode {#pseudocode}
2222
```nix
2323
delib.module {
2424
name = "";
25-
25+
2626
# options.${myConfigName} = ...
2727
options = {name, cfg, myconfig, ...}: {};
2828

docs/src/rices/structure.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Function Arguments {#function-arguments}
44
- `name`: a string representing the rice name.
5-
- `inherits`: a list of strings - the names of rices whose configurations will be inherited by the current rice.
5+
- `inherits`: a list of strings - the names of rices whose configurations will be inherited by the current rice.
66
- `inheritanceOnly`: a boolean value that determines whether this rice will be added to the [list of systems generated for each host and rice](/configurations/introduction), or if it is only used for inheritance.
77
- `myconfig`: sets its value to `config.${myconfigName}` if `config.${myconfigName}.rice` matches the current rice.
88
- `nixos`: sets its value to `config` if `isHomeManager` is `false` and `config.${myconfigName}.rice` matches the current rice.
@@ -27,12 +27,12 @@ delib.rice {
2727
# then {config.${myConfigName} = ...;}
2828
# else {}
2929
myconfig = {name, cfg, myconfig, ...}: {};
30-
30+
3131
# if config.${myconfigName}.rice == name
3232
# then {config = ...;}
3333
# else {}
3434
nixos = {name, cfg, myconfig, ...}: {};
35-
35+
3636
# if config.${myconfigName}.rice == name, then
3737
# if isHomeManager
3838
# then {config = ...;}

docs/src/ru/getting_started/initialization.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Инициализация конфигурации {#initialization}
2-
В этом разделе будет описано создание шаблона `minimal` с нуля.
2+
В этом разделе будет описано создание шаблона `minimal` с нуля.
33

44
Делать это необязательно, можно просто склонировать шаблон минимальной конфигурации с помощью команды:
55
```sh
@@ -27,7 +27,7 @@ nix flake init -t github:yunfachi/denix#minimal-no-rices
2727
inputs.home-manager.follows = "home-manager";
2828
};
2929
};
30-
30+
3131
outputs = {
3232
denix,
3333
nixpkgs,

docs/src/ru/modules/examples.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Примеры
22

3-
## Константы {#constants}
3+
## Константы {#constants}
44
```nix
55
{delib, ...}:
66
delib.module {

0 commit comments

Comments
 (0)