Modularize the DE config

This commit is contained in:
SebastianStork 2024-04-16 22:05:20 +02:00
parent 38a5b3cbb1
commit 4b650721b0
11 changed files with 285 additions and 252 deletions

View file

@ -1,40 +0,0 @@
{
inputs,
config,
pkgs,
lib,
...
}: {
imports = [
inputs.hyprlock.homeManagerModules.hyprlock
inputs.hypridle.homeManagerModules.hypridle
];
config = lib.mkIf config.myConfig.de.hyprland.enable {
programs.hyprlock = {
enable = true;
backgrounds = [
{
path = "screenshot";
blur_passes = 1;
blur_size = 6;
}
];
};
services.hypridle = let
hyprlockExe = "${lib.getExe inputs.hyprlock.packages.${pkgs.system}.default}";
in {
enable = true;
lockCmd = "pidof ${hyprlockExe} || ${hyprlockExe}";
# beforeSleepCmd = "loginctl lock-session";
afterSleepCmd = "hyprctl dispatch dpms on";
listeners = [
{
timeout = 600;
onTimeout = "loginctl lock-session";
}
];
};
};
}