{ config, lib, pkgs, modulesPath, home-manager, inputs, ... }: { networking = { hostName = "marty-pc"; interfaces = { enp42s0 = { wakeOnLan = { enable = true; policy = [ "magic" ]; }; }; }; }; home-manager = { extraSpecialArgs = { inherit inputs; }; useGlobalPkgs = true; useUserPackages = true; users = { marty = import ./home.nix; }; }; imports = [ ./hardware.nix ]; security.polkit = { enable = true; extraConfig = '' polkit.addRule(function(action, subject) { if ( subject.isInGroup("users") && ( action.id == "org.freedesktop.login1.suspend" ) ) { return polkit.Result.YES; } }); ''; }; }