Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Step 3 in nixos module guide #749

Merged
merged 2 commits into from
Oct 16, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Update NixOS module in installation.md
Step 3 on nixos module guide, will not work as it is stated right now.
  • Loading branch information
andreyadrian committed Oct 16, 2023
commit afae0c76e5b4dc13ef8bc681c7ba8868d0581277
19 changes: 13 additions & 6 deletions doc/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -477,15 +477,22 @@ binary release of kmonad and packages it in the nix-store:
3. Configure the module:

``` nix
services.kmonad = {
enable = true; # disable to not run kmonad at startup
configfiles = [ /path/to/config.kbd ];
services.kmonad = {
enable = true;
keyboards = {
{ any name for your keyboard } = {
device = "/dev/input/by-id/{ your keyboard id that usually ends with -kbd }";
config = ''
{ content of config.kbd here }
'';
};
};
# Modify the following line if you copied nixos-module.nix elsewhere or if you want to use the derivation described above
# package = import /pack/to/kmonad.nix;
};
```

4. If you've set `enable = true;` at the previous step, do not put a
5. If you've set `enable = true;` at the previous step, do not put a
`setxkbmap` line in your `config.kbd`. Instead, set the options like
this:

Expand All @@ -496,7 +503,7 @@ binary release of kmonad and packages it in the nix-store:
};
```

5. If you want your main user to use kmonad, add it to the `uinput` and
6. If you want your main user to use kmonad, add it to the `uinput` and
`input` groups:

``` nix
Expand All @@ -506,7 +513,7 @@ binary release of kmonad and packages it in the nix-store:
};
```

6. Rebuild system:
7. Rebuild system:

``` console
# nixos-rebuild switch
Expand Down