blob: 908913cc400e1de6bb4d3122f0675db1d01e96fb (
plain)
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
|
{ lib, config, pkgs, ... }:
{
# List services that you want to enable:
# Enable the OpenSSH daemon.
# services.openssh.enable = true;
systemd.services = {
nix-gc-remove-dead-roots = {
enable = true;
description = "Remove dead symlinks in /nix/var/nix/gcroots";
serviceConfig.Type = "oneshot";
script = "find /nix/var/nix/gcroots -xtype l -delete";
before = lib.mkIf config.nix.gc.automatic [ "nix-gc.service" ];
wantedBy = lib.mkIf config.nix.gc.automatic [ "nix-gc.service" ];
};
nixos-upgrade.unitConfig = {
CPUWeight = 1;
};
};
# virtualisation.docker.enable = true;
}
|