Declarative KDE configuration tool
  • C++ 71.8%
  • CMake 17.6%
  • Nix 10.6%
Find a file
2026-01-03 19:29:19 +01:00
.vscode Move from nix-maid 2025-10-05 09:12:17 +02:00
src Move from nix-maid 2025-10-05 09:12:17 +02:00
.clang-format Move from nix-maid 2025-10-05 09:12:17 +02:00
.envrc Move from nix-maid 2025-10-05 09:12:17 +02:00
.gitignore Move from nix-maid 2025-10-05 09:12:17 +02:00
CMakeLists.txt Move from nix-maid 2025-10-05 09:12:17 +02:00
default.nix Fix deprecation warning 2026-01-03 19:29:19 +01:00
LICENSE Move from nix-maid 2025-10-05 09:12:17 +02:00
manifest.json Fix format 2025-10-05 09:14:12 +02:00
README.md Fix format 2025-10-05 09:14:12 +02:00
shell.nix Move from nix-maid 2025-10-05 09:12:17 +02:00

kconfig-declarative

Configure KDE Plasma declaratively! Usage:

$ tee manifest.json << EOF
{
  "files": {
    "kwinrc": {
      "Desktops": {
        "Number": 4
      }
    },
    "baloofilerc": {
      "Basic Settings": {
        "Indexing-Enabled": false
      }
    }
  }
}
EOF

$ kconfig-declarative apply ./manifest.json

This program is part of nix-maid, which provides an easy user interface for kconfig-declarative:

{ config, pkgs, ...}: {

  users.users.nixos = {
    isNormalUser = true;

    maid = {
      kconfig.settings = {
        kwinrc = {
          Desktops.Number = 4;
        };
        baloofilerc = {
          "Basic Settings".Indexing-Enabled = false;
        };
      };
    };
  };

}

Why?

plasma-manager already exists, but:

  • The implementation is bad. They parse and encode the KDE config files as text, instead of using the C++ API.
  • It is coupled to home-manager, which I don't use.