Merge pull request #98258 from ryantm/remove-heyefi

nixos/heyefi: remove module and package
This commit is contained in:
Ryan Mulligan 2020-09-19 11:00:41 -07:00 committed by GitHub
commit 5ea751ca70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 85 deletions

View File

@ -637,7 +637,6 @@
./services/networking/gvpe.nix
./services/networking/hans.nix
./services/networking/haproxy.nix
./services/networking/heyefi.nix
./services/networking/hostapd.nix
./services/networking/htpdate.nix
./services/networking/hylafax/default.nix

View File

@ -1,82 +0,0 @@
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.services.heyefi;
in
{
###### interface
options = {
services.heyefi = {
enable = mkEnableOption "heyefi";
cardMacaddress = mkOption {
default = "";
description = ''
An Eye-Fi card MAC address.
'';
};
uploadKey = mkOption {
default = "";
description = ''
An Eye-Fi card's upload key.
'';
};
uploadDir = mkOption {
example = "/home/username/pictures";
description = ''
The directory to upload the files to.
'';
};
user = mkOption {
default = "root";
description = ''
heyefi will be run under this user (user must exist,
this can be your user name).
'';
};
};
};
###### implementation
config = mkIf cfg.enable {
systemd.services.heyefi =
{
description = "heyefi service";
after = [ "network.target" ];
wantedBy = [ "multi-user.target" ];
serviceConfig = {
User = "${cfg.user}";
Restart = "always";
ExecStart = "${pkgs.heyefi}/bin/heyefi";
};
};
environment.etc."heyefi/heyefi.config".text =
''
# /etc/heyefi/heyefi.conf: DO NOT EDIT -- this file has been generated automatically.
cards = [["${config.services.heyefi.cardMacaddress}","${config.services.heyefi.uploadKey}"]]
upload_dir = "${toString config.services.heyefi.uploadDir}"
'';
environment.systemPackages = [ pkgs.heyefi ];
};
}

View File

@ -12862,8 +12862,6 @@ in
herqq = libsForQt514.callPackage ../development/libraries/herqq { };
heyefi = haskellPackages.heyefi;
hidapi = callPackage ../development/libraries/hidapi { };
highfive = callPackage ../development/libraries/highfive { };