-
Notifications
You must be signed in to change notification settings - Fork 0
/
boot.nix
36 lines (34 loc) · 1.01 KB
/
boot.nix
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
28
29
30
31
32
33
34
35
36
{ config, pkgs, lib, ... }:
{
# Bootloader.
boot.loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
# Coredump gives infomation (sometimes sensitive) during crash
# and also slows down the system when something crashes
systemd.coredump.enable = false;
# /tmp mounted on RAM, faster temp file management
boot.tmp = {
useTmpfs = lib.mkDefault true;
cleanOnBoot = lib.mkDefault (!config.boot.tmp.useTmpfs);
};
security.polkit.enable = true;
systemd = {
user.services.polkit-authentication-agent-1 = {
description = "polkit-authentication-agent-1";
wantedBy = [ "graphical-session.target" ];
wants = [ "graphical-session.target" ];
after = [ "graphical-session.target" ];
serviceConfig = {
Type = "simple";
ExecStart = "${pkgs.polkit}/libexec/polkit-authentication-agent-1";
Restart = "on-failure";
RestartSec = 1;
TimeoutStopSec = 10;
};
};
extraConfig = ''
DefaultTimeoutStopSec=10s
'';
}