summary refs log tree commit diff
path: root/modules/base-server.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/base-server.nix')
-rwxr-xr-xmodules/base-server.nix42
1 files changed, 4 insertions, 38 deletions
diff --git a/modules/base-server.nix b/modules/base-server.nix

index 1278d83..46f0c97 100755 --- a/modules/base-server.nix +++ b/modules/base-server.nix
@@ -27,10 +27,10 @@ }; }; - sleep.extraConfig = '' - AllowSuspend=no - AllowHibernation=no - ''; + sleep.settings.Sleep = { + AllowSuspend = "no"; + AllowHibernation = "no"; + }; }; #systemd.services.NetworkManager-wait-online.enable = false; @@ -77,38 +77,4 @@ # This shaves off half a gigabyte of disk space... hardware.enableAllFirmware = false; hardware.enableRedistributableFirmware = false; - - services = { - promtail = { - enable = true; - configuration = { - server = { - http_listen_port = 3031; - grpc_listen_port = 0; - }; - positions = { - filename = "/tmp/positions.yaml"; - }; - clients = [ { url = "https://loki.regional.seian.cloud/loki/api/v1/push"; } ]; - scrape_configs = [ - { - job_name = "journal"; - journal = { - max_age = "12h"; - labels = { - job = "systemd-journal"; - host = "${toString config.networking.hostName}"; - }; - }; - relabel_configs = [ - { - source_labels = [ "__journal__systemd_unit" ]; - target_label = "unit"; - } - ]; - } - ]; - }; - }; - }; }