about summary refs log tree commit diff
path: root/modules/nixos/common/systemd.nix
blob: 29020a04a4991dd706d65b010a1eebfdaab7d948 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{pkgs, ...}: {
  ark = {
    files = ["/etc/machine-id"];
    directories = ["/var/lib/systemd/coredump"];
  };

  hm.systemd.user.startServices = "sd-switch";

  services.journald.extraConfig = ''
    SystemMaxUse=5G
  '';

  systemd = let
    extraConfig = ''
      DefaultTimeoutStartSec=30s
      DefaultTimeoutStopSec=15s
    '';
  in {
    inherit extraConfig;
    user = {inherit extraConfig;};
  };

  environment.sessionVariables = {
    SYSTEMD_PAGER = "${pkgs.less}/bin/less";
    SYSTEMD_LESS = "FRSXMK";
  };
}

Consider giving Nix/NixOS a try! <3