libconfig for hypridle

This commit is contained in:
joy 2024-09-01 19:10:52 +02:00
parent e43f0c8ba7
commit 6e91950e14
2 changed files with 25 additions and 17 deletions

View file

@ -1,6 +1,5 @@
{
inputs,
pkgs,
...
}: {
networking.hostName = "laptop";
@ -8,6 +7,8 @@
boot.loader.systemd-boot.enable = true;
services.xserver.desktopManager.gnome.enable = true;
hypridle.enable = true;
imports = [
../../modules
./hardware.nix

View file

@ -1,4 +1,9 @@
{...}: {
{lib,config,...}: {
options = {
hypridle.enable = lib.mkEnableOption "Enables kitty";
};
config = lib.mkIf config.hypridle.enable {
home-manager.users.joy.services.hypridle = {
enable = true;
settings = {
@ -16,4 +21,6 @@
];
};
};
};
}