Commit Graph

18 Commits

Author SHA1 Message Date
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
Peder Bergebakken Sundt
c77ac9dfc3 treewide: fix typos 2025-06-02 16:07:07 +02:00
Lin Jian
37e6624667 nixos/kmonad: add new option enableHardening
Before

```console
$ systemd-analyze security kmonad-foo.service | tail -n 1
→ Overall exposure level for kmonad-foo.service: 8.2 EXPOSED 🙁
```

After

```console
$ systemd-analyze security kmonad-foo.service | tail -n 1
→ Overall exposure level for kmonad-foo.service: 0.4 SAFE 😀
```
2025-01-04 03:41:15 +08:00
Lin Jian
aff999e6d4 nixos/kmonad: avoid running an unnecessary bash (#370064) 2025-01-03 07:22:46 +08:00
Lin Jian
c3588cf2c5 nixos/kmonad: avoid running an unnecessary bash 2025-01-03 02:21:23 +08:00
Lin Jian
ed3f112a0e nixos/kmonad: remove unnecessary cli flag --input
input has already been set in the config file.
2025-01-03 02:21:18 +08:00
Lin Jian
9695e75dde nixos/kmonad: create determinate symlinks 2025-01-02 06:02:52 +08:00
Lin Jian
e8ad057e99 nixos/kmonad: make sure new config is used after nixos-rebuild switch (#369853) 2025-01-02 01:39:54 +08:00
Lin Jian
280715cf39 nixos/kmonad: make sure new config is used after nixos-rebuild switch 2025-01-02 01:21:16 +08:00
Lin Jian
8463300edf nixos/kmonad: use lib.getExe 2025-01-01 10:33:40 +08:00
Lin Jian
f83da7d9bd nixos/kmonad: use the official suffix for config file
Both the official Emacs[1] and Vim[2] plugins use kbd as the config file
suffix.

[1]: b07f3e1604/kbd-mode.el (L275)
[2]: 3797844519/ftdetect/kbd.vim (L18)
2025-01-01 10:33:40 +08:00
Lin Jian
28a1740fd1 nixos/kmonad: introduce a new helper function mkName 2025-01-01 10:33:40 +08:00
Lin Jian
657ff03cc3 nixos/kmonad: make type of delay more strict 2025-01-01 10:33:40 +08:00
Lin Jian
23768e2a12 nixos/kmonad: simplify config for default keyboard name 2025-01-01 10:33:39 +08:00
Lin Jian
cbf4f6a86d nixos/kmonad: improve doc 2025-01-01 10:33:39 +08:00
Lin Jian
ffea31ccbb nixos/kmonad: add meta.maintainers 2025-01-01 10:33:39 +08:00
Silvan Mosberger
4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
r-vdp
c9160efd81 nixos/kmonad: init 2024-10-18 11:47:26 +02:00