diff --git a/host/sync/configuration.nix b/host/sync/configuration.nix index 7a9f5da..341a554 100644 --- a/host/sync/configuration.nix +++ b/host/sync/configuration.nix @@ -2,4 +2,5 @@ imports = [ ./hardware-configuration.nix ]; + myModules.fieldseeker-sync.enable = true; } diff --git a/modules/system/default.nix b/modules/system/default.nix index 8441cfe..bde223f 100644 --- a/modules/system/default.nix +++ b/modules/system/default.nix @@ -9,6 +9,7 @@ ./cloudreve.nix ./do-agent.nix ./element-web.nix + ./fieldseeker-sync.nix ./fish.nix ./librechat.nix ./openssh.nix diff --git a/modules/system/fieldseeker-sync.nix b/modules/system/fieldseeker-sync.nix new file mode 100644 index 0000000..115d9e1 --- /dev/null +++ b/modules/system/fieldseeker-sync.nix @@ -0,0 +1,18 @@ +{ pkgs, lib, config, ... }: +with lib; +let + src = pkgs.fetchFromGitHub { + owner = "Gleipnir-Technology"; + repo = "fieldseeker-sync"; + rev = "ff56a904cc9212434a1f8025cafafe59f8b48b4f"; + sha256 = "sha256-J2k3a960TT31eNp77wKUGJJZSaEYI9ENyVgxxY/RMls="; + }; +in { + options.myModules.fieldseeker-sync.enable = mkEnableOption "custom fieldseeker-sync configuration"; + + config = mkIf config.myModules.fieldseeker-sync.enable { + environment.systemPackages = [ + (pkgs.callPackage src { }) + ]; + }; +}