mirror of
https://github.com/nix-community/plasma-manager.git
synced 2024-12-13 15:53:57 +03:00
29 lines
609 B
Nix
29 lines
609 B
Nix
# Window configuration:
|
|
{ config, lib, ... }:
|
|
|
|
let
|
|
cfg = config.programs.plasma;
|
|
in
|
|
{
|
|
options.programs.plasma.windows = {
|
|
allowWindowsToRememberPositions = lib.mkOption {
|
|
type = lib.types.bool;
|
|
default = true;
|
|
description = ''
|
|
Allow apps to remember the positions of their own windows, if
|
|
they support it.
|
|
'';
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
programs.plasma.configFile = {
|
|
kdeglobals = {
|
|
General.AllowKDEAppsToRememberWindowPositions =
|
|
lib.mkDefault cfg.windows.allowWindowsToRememberPositions;
|
|
};
|
|
};
|
|
};
|
|
}
|
|
|