nixos-config/nixos/system/server/default.nix

24 lines
484 B
Nix
Raw Normal View History

2019-12-20 05:54:26 +01:00
{ config, lib, pkgs, ... }: {
2019-10-24 02:20:38 +02:00
imports = [
2021-09-27 18:53:45 +02:00
../../system/all
2023-12-29 17:03:35 +01:00
#./netdata.nix
2019-10-24 02:20:38 +02:00
./initssh.nix
2022-06-23 00:33:59 +02:00
#./graylog-exporter.nix
2019-10-24 02:20:38 +02:00
./prometheus-exporters.nix
./packages.nix
2019-10-24 02:20:38 +02:00
];
# make sure laptops stay awake when closing the montior
services.logind.lidSwitch = "ignore";
powerManagement.enable = false;
2023-01-23 20:04:50 +01:00
#powerManagement.scsiLinkPolicy = "min_power";
2019-10-24 02:20:38 +02:00
2021-05-02 05:11:07 +02:00
services.locate.enable = true;
2022-01-17 11:57:52 +01:00
services.locate.locate = pkgs.mlocate;
services.locate.localuser = null;
2021-05-02 05:11:07 +02:00
2023-01-07 21:11:25 +01:00
2019-10-24 02:20:38 +02:00
}