diff options
author | Robin Gloster <mail@glob.in> | 2016-01-06 06:50:18 +0000 |
---|---|---|
committer | Robin Gloster <mail@glob.in> | 2016-01-07 06:39:06 +0000 |
commit | 88292fdf09960e9cb8e3c063a6b95ac4284222ec (patch) | |
tree | 34ff267ed7bacf9fd906b1736476b431e9afe909 /nixos/modules/services/misc/dictd.nix | |
parent | af50b03f50d88954e98018c7c18c0581928b7165 (diff) | |
download | nixlib-88292fdf09960e9cb8e3c063a6b95ac4284222ec.tar nixlib-88292fdf09960e9cb8e3c063a6b95ac4284222ec.tar.gz nixlib-88292fdf09960e9cb8e3c063a6b95ac4284222ec.tar.bz2 nixlib-88292fdf09960e9cb8e3c063a6b95ac4284222ec.tar.lz nixlib-88292fdf09960e9cb8e3c063a6b95ac4284222ec.tar.xz nixlib-88292fdf09960e9cb8e3c063a6b95ac4284222ec.tar.zst nixlib-88292fdf09960e9cb8e3c063a6b95ac4284222ec.zip |
jobs -> systemd.services
Diffstat (limited to 'nixos/modules/services/misc/dictd.nix')
-rw-r--r-- | nixos/modules/services/misc/dictd.nix | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/nixos/modules/services/misc/dictd.nix b/nixos/modules/services/misc/dictd.nix index 552e0a435efe..118d299042d5 100644 --- a/nixos/modules/services/misc/dictd.nix +++ b/nixos/modules/services/misc/dictd.nix @@ -51,13 +51,12 @@ with lib; gid = config.ids.gids.dictd; }; - jobs.dictd = - { description = "DICT.org Dictionary Server"; - startOn = "startup"; - environment = { LOCALE_ARCHIVE = "/run/current-system/sw/lib/locale/locale-archive"; }; - daemonType = "fork"; - exec = "${pkgs.dict}/sbin/dictd -s -c ${dictdb}/share/dictd/dictd.conf --locale en_US.UTF-8"; - }; + systemd.services.dictd = { + description = "DICT.org Dictionary Server"; + wantedBy = [ "multi-user.target" ]; + environment = { LOCALE_ARCHIVE = "/run/current-system/sw/lib/locale/locale-archive"; }; + serviceConfig.Type = "forking"; + script = "${pkgs.dict}/sbin/dictd -s -c ${dictdb}/share/dictd/dictd.conf --locale en_US.UTF-8"; + }; }; - } |