From e8f58189eb4d01ee2a7684a30b27fa187f37d1aa Mon Sep 17 00:00:00 2001 From: Leander Scherer Date: Thu, 8 Jan 2026 16:04:28 +0100 Subject: refactor(cinnamon): remove hardcoded keyboard layout and disable orca --- modules/hosts/desktop/sway/swayidle.nix | 49 --------------------------------- 1 file changed, 49 deletions(-) delete mode 100644 modules/hosts/desktop/sway/swayidle.nix (limited to 'modules/hosts/desktop/sway/swayidle.nix') diff --git a/modules/hosts/desktop/sway/swayidle.nix b/modules/hosts/desktop/sway/swayidle.nix deleted file mode 100644 index df8dbdc..0000000 --- a/modules/hosts/desktop/sway/swayidle.nix +++ /dev/null @@ -1,49 +0,0 @@ -{ - config, - lib, - pkgs, - username, - ... -}: - -let - inherit (lib) mkEnableOption mkIf; - cfg = config.nx.desktop.swayidle; -in -{ - options.nx.desktop.swayidle.enable = mkEnableOption "Enable swayidle configuration" // { - default = config.nx.desktop.sway.enable; - }; - config = mkIf cfg.enable { - home-manager.users."${username}" = { - services.swayidle = { - enable = true; - timeouts = [ - { - timeout = 300; - command = "${pkgs.swaylock}/bin/swaylock -f -c 000000"; - } - { - timeout = 600; - command = "${pkgs.sway}/bin/swaymsg 'output * dpms off"; - resumeCommand = "${pkgs.sway}/bin/swaymsg output * dpms on"; - } - { - timeout = 900; - command = "${pkgs.systemd}/bin/systemctl suspend"; - } - ]; - events = [ - { - event = "after-resume"; - command = "${pkgs.sway}/bin/swaymsg output * dpms on"; - } - { - event = "before-sleep"; - command = "${pkgs.swaylock}/bin/swaylock -f -c 000000"; - } - ]; - }; - }; - }; -} -- cgit v1.3.1