diff options
author | Jörg Thalheim <joerg@thalheim.io> | 2020-04-22 14:50:32 +0100 |
---|---|---|
committer | Jörg Thalheim <joerg@thalheim.io> | 2020-04-28 09:44:55 +0100 |
commit | 72773b9c975de70ada208d3a62c2a8e1a707e24d (patch) | |
tree | 63694d869537900396419878855b34bdfc2a51da /nixos | |
parent | 2cd07f1f187ca6cf8cba4ea23543a53b4ea391fa (diff) | |
download | nixpkgs-72773b9c975de70ada208d3a62c2a8e1a707e24d.tar nixpkgs-72773b9c975de70ada208d3a62c2a8e1a707e24d.tar.gz nixpkgs-72773b9c975de70ada208d3a62c2a8e1a707e24d.tar.bz2 nixpkgs-72773b9c975de70ada208d3a62c2a8e1a707e24d.tar.lz nixpkgs-72773b9c975de70ada208d3a62c2a8e1a707e24d.tar.xz nixpkgs-72773b9c975de70ada208d3a62c2a8e1a707e24d.tar.zst nixpkgs-72773b9c975de70ada208d3a62c2a8e1a707e24d.zip |
prey-bash-client: remove
prey-bash-client is deprecated since 2018
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/module-list.nix | 1 | ||||
-rw-r--r-- | nixos/modules/rename.nix | 4 | ||||
-rw-r--r-- | nixos/modules/security/prey.nix | 51 |
3 files changed, 4 insertions, 52 deletions
diff --git a/nixos/modules/module-list.nix b/nixos/modules/module-list.nix index 7244a7e0a89..0cd17775e51 100644 --- a/nixos/modules/module-list.nix +++ b/nixos/modules/module-list.nix @@ -196,7 +196,6 @@ ./security/pam_usb.nix ./security/pam_mount.nix ./security/polkit.nix - ./security/prey.nix ./security/rngd.nix ./security/rtkit.nix ./security/wrappers/default.nix diff --git a/nixos/modules/rename.nix b/nixos/modules/rename.nix index 410db8fd84e..a946268494e 100644 --- a/nixos/modules/rename.nix +++ b/nixos/modules/rename.nix @@ -49,6 +49,10 @@ with lib; simply add the brightnessctl package to environment.systemPackages. '') + (mkRemovedOptionModule ["services" "prey" ] '' + prey-bash-client is deprecated upstream + '') + # Do NOT add any option renames here, see top of the file ]; } diff --git a/nixos/modules/security/prey.nix b/nixos/modules/security/prey.nix deleted file mode 100644 index b899ccb6c3e..00000000000 --- a/nixos/modules/security/prey.nix +++ /dev/null @@ -1,51 +0,0 @@ -{ config, lib, pkgs, ... }: - -with lib; - -let - cfg = config.services.prey; - myPrey = pkgs.prey-bash-client.override { - apiKey = cfg.apiKey; - deviceKey = cfg.deviceKey; - }; -in { - options = { - - services.prey = { - enable = mkOption { - default = false; - type = types.bool; - description = '' - Enables the <link xlink:href="http://preyproject.com/" /> - shell client. Be sure to specify both API and device keys. - Once enabled, a <command>cron</command> job will run every 15 - minutes to report status information. - ''; - }; - - deviceKey = mkOption { - type = types.str; - description = '' - <literal>Device key</literal> obtained by visiting - <link xlink:href="https://panel.preyproject.com/devices" /> - and clicking on your device. - ''; - }; - - apiKey = mkOption { - type = types.str; - description = '' - <literal>API key</literal> obtained from - <link xlink:href="https://panel.preyproject.com/profile" />. - ''; - }; - }; - - }; - - config = mkIf cfg.enable { - environment.systemPackages = [ myPrey ]; - services.cron.systemCronJobs = [ "*/15 * * * * root ${myPrey}/prey.sh" ]; - }; - -} |