modules/services: remove foldingathome

This commit is contained in:
Infinidoge 2024-07-26 11:15:31 -04:00
parent e9f103d8c4
commit c477dc1c54
Signed by: Infinidoge
SSH key fingerprint: SHA256:oAMyvotlNFraMmZmr+p6AxnNfW/GioTs1pOn3V4tQ7A
2 changed files with 0 additions and 40 deletions

View file

@ -1,32 +0,0 @@
{ config, lib, pkgs, ... }:
with lib;
with lib.our;
let
cfg = config.modules.services.foldingathome;
in
{
options.modules.services.foldingathome = with types; {
enable = mkBoolOpt false;
user = mkOpt str config.user.name;
daemonNiceLevel = mkOpt int 10;
extra = {
control = mkBoolOpt false;
viewer = mkBoolOpt false;
};
};
config = mkMerge [
(mkIf cfg.enable {
services.foldingathome = {
enable = true;
user = cfg.user;
daemonNiceLevel = cfg.daemonNiceLevel;
};
environment.systemPackages = with pkgs; [
(mkIf cfg.extra.control pkgs.fahcontrol)
(mkIf cfg.extra.viewer pkgs.fahviewer)
];
})
];
}