mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-09 12:05:50 +03:00
nixos/racoon: drop
This commit is contained in:
parent
b5f5cc6d44
commit
737de29e11
3 changed files with 3 additions and 46 deletions
|
@ -852,7 +852,6 @@
|
||||||
./services/networking/quassel.nix
|
./services/networking/quassel.nix
|
||||||
./services/networking/quorum.nix
|
./services/networking/quorum.nix
|
||||||
./services/networking/quicktun.nix
|
./services/networking/quicktun.nix
|
||||||
./services/networking/racoon.nix
|
|
||||||
./services/networking/radicale.nix
|
./services/networking/radicale.nix
|
||||||
./services/networking/radvd.nix
|
./services/networking/radvd.nix
|
||||||
./services/networking/rdnssd.nix
|
./services/networking/rdnssd.nix
|
||||||
|
|
|
@ -80,6 +80,9 @@ with lib;
|
||||||
libinput and synaptics.
|
libinput and synaptics.
|
||||||
'')
|
'')
|
||||||
(mkRemovedOptionModule [ "virtualisation" "rkt" ] "The rkt module has been removed, it was archived by upstream")
|
(mkRemovedOptionModule [ "virtualisation" "rkt" ] "The rkt module has been removed, it was archived by upstream")
|
||||||
|
(mkRemovedOptionModule [ "services" "racoon" ] ''
|
||||||
|
The racoon module has been removed, because the software project was abandoned upstream.
|
||||||
|
'')
|
||||||
|
|
||||||
# Do NOT add any option renames here, see top of the file
|
# Do NOT add any option renames here, see top of the file
|
||||||
];
|
];
|
||||||
|
|
|
@ -1,45 +0,0 @@
|
||||||
{ config, lib, pkgs, ... }:
|
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
|
||||||
cfg = config.services.racoon;
|
|
||||||
in {
|
|
||||||
options.services.racoon = {
|
|
||||||
enable = mkEnableOption "racoon";
|
|
||||||
|
|
||||||
config = mkOption {
|
|
||||||
description = "Contents of racoon configuration file.";
|
|
||||||
default = "";
|
|
||||||
type = types.str;
|
|
||||||
};
|
|
||||||
|
|
||||||
configPath = mkOption {
|
|
||||||
description = "Location of racoon config if config is not provided.";
|
|
||||||
default = "/etc/racoon/racoon.conf";
|
|
||||||
type = types.path;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
|
||||||
systemd.services.racoon = {
|
|
||||||
description = "Racoon Daemon";
|
|
||||||
wantedBy = [ "multi-user.target" ];
|
|
||||||
after = [ "network.target" ];
|
|
||||||
serviceConfig = {
|
|
||||||
ExecStart = "${pkgs.ipsecTools}/bin/racoon -f ${
|
|
||||||
if (cfg.config != "") then pkgs.writeText "racoon.conf" cfg.config
|
|
||||||
else cfg.configPath
|
|
||||||
}";
|
|
||||||
ExecReload = "${pkgs.ipsecTools}/bin/racoonctl reload-config";
|
|
||||||
PIDFile = "/run/racoon.pid";
|
|
||||||
Type = "forking";
|
|
||||||
Restart = "always";
|
|
||||||
};
|
|
||||||
preStart = ''
|
|
||||||
rm /run/racoon.pid || true
|
|
||||||
mkdir -p /var/racoon
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Add table
Add a link
Reference in a new issue