{ config, lib, pkgs, ... }: { networking = { interfaces = { enp42s0 = { wakeOnLan = { enable = true; policy = [ "magic" ]; }; }; }; }; services.flatpak.enable = true; virtualisation.docker.enable = true; security.polkit = { enable = true; extraConfig = '' polkit.addRule(function(action, subject) { if ( subject.isInGroup("users") && ( action.id == "org.freedesktop.login1.suspend" ) ) { return polkit.Result.YES; } }); ''; }; }