diff options
author | Alan Pearce | 2018-04-29 15:00:53 +0200 |
---|---|---|
committer | Alan Pearce | 2018-04-29 15:00:53 +0200 |
commit | 05571aa5ed5eb898be468bff237657914f7e9dcf (patch) | |
tree | b7f271af5d42dce8caec06a66eaafd9e1ef6411d /modules/hardware/nitrokey.nix | |
parent | 68f44953449af2ad3565426e1716757fe7afc04b (diff) | |
download | nixfiles-05571aa5ed5eb898be468bff237657914f7e9dcf.tar.lz nixfiles-05571aa5ed5eb898be468bff237657914f7e9dcf.tar.zst nixfiles-05571aa5ed5eb898be468bff237657914f7e9dcf.zip |
Delay startup of non-essential services
Diffstat (limited to 'modules/hardware/nitrokey.nix')
-rw-r--r-- | modules/hardware/nitrokey.nix | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/modules/hardware/nitrokey.nix b/modules/hardware/nitrokey.nix index ec25d8e0..22e9d762 100644 --- a/modules/hardware/nitrokey.nix +++ b/modules/hardware/nitrokey.nix @@ -1,4 +1,4 @@ -{ config, pkgs, ... }: +{ config, pkgs, lib, ... }: { programs.ssh.startAgent = false; @@ -26,6 +26,14 @@ enable = true; }; }; + systemd.services.tor.wantedBy = lib.mkForce []; + systemd.timers.tor = { + description = "Delayed startup of Tor"; + wantedBy = [ "timers.target" ]; + timerConfig = { + OnActiveSec = "1 min"; + }; + }; environment.systemPackages = with pkgs; [ gnupg |