Skip to content

Commit adc16c9

Browse files
committed
docs/src/modules/introduction-nixos: fix typo in example nixos git module
1 parent c9f2c69 commit adc16c9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/src/modules/introduction-nixos.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,11 @@ An example of a NixOS module for simple git configuration:
110110

111111
```nix
112112
{lib, config, ...}: {
113-
options.programs.git = {
113+
options.myconfig.programs.git = {
114114
enable = lib.mkEnableOption "git" // {default = true;};
115115
};
116116
117-
config = lib.mkIf config.programs.git.enable {
117+
config = lib.mkIf config.myconfig.programs.git.enable {
118118
programs.git = {
119119
enable = true;
120120
lfs.enable = true;

docs/src/ru/modules/introduction-nixos.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,11 @@ delib.module {
109109

110110
```nix
111111
{lib, config, ...}: {
112-
options.programs.git = {
112+
options.myconfig.programs.git = {
113113
enable = lib.mkEnableOption "git" // {default = true;};
114114
};
115115
116-
config = lib.mkIf config.programs.git.enable {
116+
config = lib.mkIf config.myconfig.programs.git.enable {
117117
programs.git = {
118118
enable = true;
119119
lfs.enable = true;

0 commit comments

Comments
 (0)