mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
13 lines
309 B
Nix
13 lines
309 B
Nix
{ config, pkgs, lib, ... }:
|
|
with lib;
|
|
{
|
|
config = mkIf (config.sconfig.profile == "server") {
|
|
services.logind.lidSwitch = "ignore";
|
|
documentation.nixos.enable = false;
|
|
nix.gc = {
|
|
automatic = true;
|
|
options = "--delete-older-than 30d";
|
|
randomizedDelaySec = "55min";
|
|
};
|
|
};
|
|
}
|