!OHimLTKAXNbFrEoogf:matrix.org

Nix Milan

115 Members
https://milano.nix.pizza/8 Servers

Load older messages


SenderMessageTime
16 Jan 2026
@telegram_165995843:t2bot.ioNonno Felice
services = {
    kanata = {
      enable = true;
      keyboards = {
        laptop = {
          config =
            # lisp
            ''
              (defsrc caps esc)
              (deflayer base esc caps)
            '';
          devices = [
            "/dev/input/by-path/platform-i8042-serio-0-event-kbd" # framework-13-7040-amd
          ];
        };
      };
    };
    logind.settings.Login = {
      HandleLidSwitch = "suspend-then-hibernate";
      HandleLidSwitchExternalPower = "suspend-then-hibernate";
      # When the laptop is plugged to an external monitor
      HandleLidSwitchDocked = "suspend-then-hibernate";
    };
    thermald.enable = true;
    fwupd.enable = true;
    upower.enable = true;
  };

Io tengo questo

E su home-manager ho questo

services.swayidle = {
      enable = true;
      events = {
        "before-sleep" = "${pkgs.swaylock}/bin/swaylock -fF -i ~/Pictures/wallpaper.jpg";
        "lock" = "lock";
      };
    };

Per il resto ho praticamente il tuo setup e la sospensione mi funziona
08:49:01
@telegram_524811522:t2bot.ioTonioPer ibernare usi una partizione di swap o uno swapfile?08:54:57
@telegram_165995843:t2bot.ioNonno FeliceSwap09:02:14
@telegram_165995843:t2bot.ioNonno FelicePerΓ² l'ibernazione non so se abbia mai funzionato onestamente πŸ˜‚09:02:33
@telegram_524811522:t2bot.ioTonio @C3n21 posso chiederti l'output di `cat /sys/power/mem_sleep` sulla tua macchina? 09:27:12
@telegram_524811522:t2bot.ioTonio * @C3n21 posso chiederti l'output di `
cat /sys/power/mem_sleep` 
sulla tua macchina?
09:27:20
@telegram_524811522:t2bot.ioTonio * @C3n21 posso chiederti l'output di cat /sys/power/mem_sleep sulla tua macchina? 09:28:05
@telegram_165995843:t2bot.ioNonno Felice[s2idle]09:38:43
@telegram_524811522:t2bot.ioTonioOk, ho capito, stavo diventando pazzo09:48:28
@telegram_524811522:t2bot.ioTonio da man logind.conf:
```
HoldoffTimeoutSec=
Specifies a period of time after system startup or system
resume in which systemd will hold off on reacting to lid
events. This is required for the system to properly detect any
hotplugged devices so systemd can ignore lid events if
external monitors, or docks, are connected. If set to 0,
systemd will always react immediately, possibly before the
kernel fully probed all hotplugged devices. This is safe, as
long as you do not care for systemd to account for devices
that have been plugged or unplugged while the system was off.
           Defaults to 30s.

```
09:48:50
@telegram_524811522:t2bot.ioTonio * da man logind.conf:
       HoldoffTimeoutSec=
           Specifies a period of time after system startup or system
           resume in which systemd will hold off on reacting to lid
           events. This is required for the system to properly detect any
           hotplugged devices so systemd can ignore lid events if
           external monitors, or docks, are connected. If set to 0,
           systemd will always react immediately, possibly before the
           kernel fully probed all hotplugged devices. This is safe, as
           long as you do not care for systemd to account for devices
           that have been plugged or unplugged while the system was off.
           Defaults to 30s.
09:49:08
@telegram_524811522:t2bot.ioTonio * da man logind.conf:
HoldoffTimeoutSec=
Specifies a period of time after system startup resume in which systemd will hold off on reacting to lid
events. This is required for the system to properly detect any
hotplugged devices so systemd can ignore lid events if
external monitors, or docks, are connected. If set to 0,
systemd will always react immediately, possibly before the
kernel fully probed all hotplugged devices. This is safe, as
long as you do not care for systemd to account for devices
that have been plugged or unplugged while the system was off.
Defaults to 30s.
09:49:28
@telegram_524811522:t2bot.ioTonio * da man logind.conf:
HoldoffTimeoutSec=
  Specifies a period of time after system startup
  resume in which systemd will hold off on reacting to lid
events. This is required for the system to properly detect any
hotplugged devices so systemd can ignore lid events if
external monitors, or docks, are connected. If set to 0,
systemd will always react immediately, possibly before the
kernel fully probed all hotplugged devices. This is safe, as
long as you do not care for systemd to account for devices
that have been plugged or unplugged while the system was off.
Defaults to 30s.
09:50:19
@telegram_524811522:t2bot.ioTonioIo aprivo e chiudevo il lid ogni 5 secondi come un pazzo e lo riaprivo prima di questi canonici 30 secondi09:50:48
@telegram_524811522:t2bot.ioTonioSe apri e chiudi il lid 2 volte entro 30 secondi la seconda apertura/chiusura finisce dentro questo grace period. Se aspetti i rimanenti 25 secondi il laptop va in sleep (letteralmente lo schermo si spegne). Mistero risolto.09:51:46
@telegram_524811522:t2bot.ioTonio* Se apri e chiudi il lid 2 volte entro 30 secondi la seconda apertura/chiusura finisce dentro questo grace period. Se aspetti i rimanenti 25 secondi il laptop va in sleep (letteralmente lo schermo si spegne). Mistero risolto, scusate lo spam in chat.10:02:12
@telegram_165995843:t2bot.ioNonno FeliceAverage Linux desktop experience10:05:48
29 Feb 2024
@admin:nixos.org@admin:nixos.org changed the history visibility to "world_readable" from "shared".12:19:16
@mjolnir:nixos.orgNixOS Moderation Bot joined the room.12:19:31
@admin:nixos.org@admin:nixos.orgchanged room power levels.12:20:33
@admin:nixos.org@admin:nixos.org left the room.12:20:52
@fgaz:matrix.orgfgaz joined the room.15:24:24
1 Mar 2024
@aciceri:nixos.devaciceri Questa room ha ora come alias principale #milan:nixos.org ora. E siamo nello space di NixOS! 11:39:05
@aciceri:nixos.devaciceri * Questa room ha ora come alias principale #milan:nixos.org. E siamo nello space di NixOS! 13:29:32
2 Mar 2024
@telegram_25591608:t2bot.ioMatteo Joliveau joined the room.09:58:50
@telegram_25591608:t2bot.ioMatteo JoliveauπŸ‘‹09:58:29
@telegram_25591608:t2bot.ioMatteo Joliveau changed their profile picture.09:58:51
@aciceri:nixos.devaciceri
In reply to @telegram_25591608:t2bot.io
πŸ‘‹
benvenuto
15:35:50
@telegram_25591608:t2bot.ioMatteo Joliveau
In reply to @aciceri:nixos.dev
benvenuto
thx
15:55:41
4 Mar 2024
@telegram_98204228:t2bot.ioAlessandro πŸ€”βž–β˜€οΈπŸ–ŒMa quindi sarΓ  una cosa molto ad organizzazione spontanea questo meetup, giusto?20:38:39

Show newer messages


Back to Room ListRoom Version: 10