caffiene
This commit is contained in:
@@ -139,6 +139,24 @@ in
|
|||||||
|
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
# Override the shared Plasma panel to add a standalone battery widget
|
||||||
|
# (laptop-specific — not needed on desktop systems)
|
||||||
|
programs.plasma.panels = lib.mkForce [
|
||||||
|
{
|
||||||
|
location = "bottom";
|
||||||
|
floating = true;
|
||||||
|
height = 44;
|
||||||
|
widgets = [
|
||||||
|
"org.kde.plasma.kickoff"
|
||||||
|
"org.kde.plasma.icontasks"
|
||||||
|
"org.kde.plasma.marginsseparator"
|
||||||
|
{ battery = { }; }
|
||||||
|
"org.kde.plasma.systemtray"
|
||||||
|
"org.kde.plasma.digitalclock"
|
||||||
|
];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
kdeconnect = {
|
kdeconnect = {
|
||||||
enable = lib.mkForce true;
|
enable = lib.mkForce true;
|
||||||
|
|||||||
@@ -12,10 +12,15 @@ in
|
|||||||
imports = [ ./options.nix ];
|
imports = [ ./options.nix ];
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
home.packages = with pkgs.kdePackages; [
|
home.packages =
|
||||||
plasma-browser-integration
|
(with pkgs.kdePackages; [
|
||||||
kdeplasma-addons
|
plasma-browser-integration
|
||||||
];
|
kdeplasma-addons
|
||||||
|
])
|
||||||
|
++ [
|
||||||
|
# Caffeine-like tray applet: inhibits screensaver and sleep on demand
|
||||||
|
pkgs.caffeine-ng
|
||||||
|
];
|
||||||
|
|
||||||
programs.plasma = {
|
programs.plasma = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@@ -6,6 +6,10 @@ final: prev: {
|
|||||||
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ pyPrev.pythonRelaxDepsHook ];
|
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ pyPrev.pythonRelaxDepsHook ];
|
||||||
pythonRelaxDeps = [ "pycountry" ];
|
pythonRelaxDeps = [ "pycountry" ];
|
||||||
});
|
});
|
||||||
|
psnawp = pyPrev.psnawp.overridePythonAttrs (old: {
|
||||||
|
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ pyPrev.pythonRelaxDepsHook ];
|
||||||
|
pythonRelaxDeps = [ "pycountry" ];
|
||||||
|
});
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
python3Packages = final.python3.pkgs;
|
python3Packages = final.python3.pkgs;
|
||||||
|
|||||||
Reference in New Issue
Block a user