35 lines
787 B
Nix
35 lines
787 B
Nix
{ config, lib, pkgs, ... }: {
|
|
|
|
imports = [
|
|
<system/all>
|
|
./netdata.nix
|
|
./initssh.nix
|
|
./graylog-exporter.nix
|
|
./prometheus-exporters.nix
|
|
];
|
|
|
|
# make sure laptops stay awake when closing the montior
|
|
services.logind.lidSwitch = "ignore";
|
|
powerManagement.enable = false;
|
|
powerManagement.cpuFreqGovernor = "ondemand";
|
|
powerManagement.scsiLinkPolicy = "min_power";
|
|
|
|
# config vim
|
|
programs.custom.vim.enable = true;
|
|
|
|
# no need to to start a service
|
|
environment.systemPackages = let
|
|
|
|
nginxShowConfig = pkgs.writers.writePython3Bin "nginx-show-config" {
|
|
flakeIgnore = [ "E265" "E225" "W292" ];
|
|
} (lib.fileContents <assets/nginx-show-config.sh>);
|
|
in [
|
|
pkgs.mosh
|
|
|
|
# nginxfmt
|
|
pkgs.nginx-config-formatter
|
|
nginxShowConfig
|
|
];
|
|
|
|
}
|
|
|