fix: temporarily disable 'ly' on desktop

This commit is contained in:
2026-02-22 12:42:43 +01:00
parent 7bb0f6fca4
commit 85df2e7886
2 changed files with 27 additions and 10 deletions

View File

@@ -59,6 +59,7 @@ in
secrets.username = username; secrets.username = username;
docker.user = username; docker.user = username;
nfc.user = username; nfc.user = username;
desktop.ly.enable = true;
nix.settings.secret-key-files = [ config.sops.secrets.nix_signing_key_astyanax.path ]; nix.settings.secret-key-files = [ config.sops.secrets.nix_signing_key_astyanax.path ];

View File

@@ -1,16 +1,32 @@
{ config, lib, ... }:
let
cfg = config.desktop;
in
{ {
programs.niri.enable = true; options.desktop = {
ly = {
services = { enable = lib.mkOption {
dbus.enable = true; type = lib.types.bool;
logind.settings.Login = { default = false;
HandleLidSwitch = "suspend"; };
IdleAction = "suspend";
IdleActionSec = 1800;
}; };
};
displayManager.ly = { config = {
enable = true; programs.niri.enable = true;
services = {
dbus.enable = true;
logind.settings.Login = {
HandleLidSwitch = "suspend";
IdleAction = "suspend";
IdleActionSec = 1800;
};
displayManager.ly = lib.mkIf cfg.ly.enable {
enable = true;
};
}; };
}; };
} }