diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2020-04-28 14:01:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-28 14:01:47 +0100 |
commit | a110c227a374caf4152e8204c8fbc37c7af880d7 (patch) | |
tree | 7ea14a573f0015568930fe3383d7803183cec7ce /nixos | |
parent | f0fbce667344d62974e780e2306d041da9d43590 (diff) | |
parent | 72773b9c975de70ada208d3a62c2a8e1a707e24d (diff) | |
download | nixpkgs-a110c227a374caf4152e8204c8fbc37c7af880d7.tar nixpkgs-a110c227a374caf4152e8204c8fbc37c7af880d7.tar.gz nixpkgs-a110c227a374caf4152e8204c8fbc37c7af880d7.tar.bz2 nixpkgs-a110c227a374caf4152e8204c8fbc37c7af880d7.tar.lz nixpkgs-a110c227a374caf4152e8204c8fbc37c7af880d7.tar.xz nixpkgs-a110c227a374caf4152e8204c8fbc37c7af880d7.tar.zst nixpkgs-a110c227a374caf4152e8204c8fbc37c7af880d7.zip |
Merge pull request #86180 from Mic92/prey-bash-client
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" ]; - }; - -} |