KDE: Difference between revisions

Excluding applications from the default install: Update link from NixOS 24.11 to 25.11
Move unlock KWallet with LUKS password section to KDE page, add plasmalogin instructions too
Line 54: Line 54:
   services.displayManager.defaultSession = "plasmax11";
   services.displayManager.defaultSession = "plasmax11";
}|name=configuration.nix|lang=nix}}
}|name=configuration.nix|lang=nix}}
=== Unlock KDE Wallet with LUKS password ===
When using LUKS disk encryption and autologin in your display manager, it is possible to unlock KDE Wallet with the LUKS password. Set the LUKS password, login password, and KWallet keyring password all to the same string, and for NixOS 25.11 and below use the following configuration:
<syntaxhighlight lang="nix">
{
  boot.initrd.systemd.enable = true;
  systemd.services.display-manager.serviceConfig.KeyringMode = "inherit";
  security.pam.services.sddm-autologin.text = pkgs.lib.mkBefore ''
    auth optional ${pkgs.systemd}/lib/security/pam_systemd_loadkey.so
    auth include sddm
  '';
}
</syntaxhighlight>
For Plasma Login Manager in NixOS 26.05 or above, use:
<syntaxhighlight lang="nix">
{
  boot.initrd.systemd.enable = true;
  systemd.services.plasmalogin.serviceConfig.KeyringMode = "inherit";
  security.pam.services.plasmalogin-autologin.rules.auth = {
    systemd_loadkey = {
      order = 0;
      control = "optional";
      modulePath = "${pkgs.systemd}/lib/security/pam_systemd_loadkey.so";
    };
    plasmalogin = {
      order = 1;
      control = "include";
      modulePath = "plasmalogin";
    };
  };
}
</syntaxhighlight>


== Troubleshooting ==
== Troubleshooting ==